EcoTrack is a Django-based environmental data aggregation platform that fetches and processes air quality and weather data from various sources.
- Fetches data from OpenAQ and OpenWeatherMap APIs
- Stores environmental metrics, locations, and time series data
- Provides API endpoints for current, historical, and aggregated data
- Uses GeoDjango for spatial queries
- Implements Celery for task queuing and scheduling
- Utilizes Redis for caching
- Includes comprehensive API documentation using drf-yasg
-
Clone the repository:
git clone https://github.com/yourusername/ecotrack.gitcd ecotrack -
Create a
.envfile in the project root and add the necessary environment variables (see.envexample above). -
Build and run the Docker containers:
docker-compose up --build -
Run migrations:
docker-compose exec web python manage.py migrate -
Create a superuser:
docker-compose exec web python manage.py createsuperuser
- Access the admin interface at
http://localhost:8000/admin/ - View API documentation at
http://localhost:8000/swagger/orhttp://localhost:8000/redoc/ - Use the provided API endpoints to fetch and analyze environmental data
To run the tests, use the following command:
docker-compose exec web python manage.py test
This project is licensed under the MIT License.