A Django REST Framework application for pulling, caching, searching and exporting weather forecast information
api
— backend application
build
— build scripts, docker/docker-compose
- 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
- 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.
You can see the API documentation at /api/v1/doc
endpoint
Hooks have been already setup for checking/fixing code styling before commits
CircleCI is configured to test the application and check code styling