weather-forecasts-drf
A Django REST Framework application for pulling, caching, searching and exporting weather forecast information
Project Structure
api
— backend application
build
— build scripts, docker/docker-compose
How to run
- Create a virtual env
python3 -m venv venv
- Activate venv
source ./venv/bin/activate
- Configure local postgres database
./scripts/setup-dev.sh
- Replace
__YOUR_OPEN_WEATHER_MAP_API_KEY_HERE__
inapi/.env
with your Open Weather Map API Key - Start django server
cd api && python manage.py runserver
Features
API features
- Trigger a weather search for a particular lat long. (e.g. lat=33.441792&lon=-94.037689) from a weather data integration
- Return stored weather data and their metadata based on applied filters/search.
- Export filtered data as CSV with selected columns of your choice.
Development features
API documentation
You can see the API documentation at /api/v1/doc
endpoint
Code styling
Hooks have been already setup for checking/fixing code styling before commits
Continuous Integration
CircleCI is configured to test the application and check code styling