The Urban Tree Observatory is a data-driven platform for monitoring and conserving urban trees in Ibagué, Colombia. The project centralizes tree data, enables citizen reporting, and tracks conservation efforts.
- Docker and Docker Compose
- Git
-
Clone this repository:
git clone <omdena-repository-url> cd urban-tree-observatory
-
Start the development environment:
docker-compose up
-
Access the different components:
- Django backend: http://localhost:8000/
- Django admin: http://localhost:8000/admin/
- Angular frontend: http://localhost:4200/
- PostgreSQL database: localhost:5432
- PgAdmin: http://localhost:5050/
After starting the containers for the first time, you'll need to create a superuser:
docker-compose exec backend python manage.py createsuperuser
You can also load initial data fixtures:
docker-compose exec backend python manage.py loaddata species
backend/
- Django projectconfig/
- Django project settingsapps/
- Django appscore/
- Shared utilitiesaccounts/
- User managementtrees/
- Tree data management with GISreports/
- Citizen reporting systemanalysis/
- Environmental impact analysis
frontend/
- Angular applicationsrc/app/
- Angular components and modulescore/
- Core functionalityshared/
- Shared componentsfeatures/
- Feature modulesmap/
- Map visualizationtrees/
- Tree management interfacesreports/
- Reporting interfaceanalysis/
- Data analysis dashboards
- PostgreSQL with PostGIS for geospatial data
- Run the application with Docker Compose
- Make changes to your code (the development server will auto-reload)
- Run tests to verify your changes
- Commit and push your changes
# Backend tests
docker-compose exec backend python manage.py test
# Frontend tests
docker-compose exec frontend ng test
The API documentation is available at:
- Swagger UI: http://localhost:8000/api/v1/swagger/
- ReDoc: http://localhost:8000/api/v1/redoc/
For production deployment, see the instructions in docs/deployment/
.