Interview code.
- Python version 3.8.3+
- Internet connection to run the tests and connect to the database.
Install all needed packages:
python3 -m venv env
source env/bin/activate
pip install -r requirements.txt
Run (127.0.0.1:8000):
./manage.py runserver
- interview/database.py handles downloading the data into our own models.
- interview/geocode.py geocoding (batch geocoding costed money so went for 1 by 1 ).
- interview/geojson.py generates the geojson files.
- static/geojson/* gejson files by country area.
- static/sass/* where the styles live.
- templates/* where the html/js lives.
Please run tests before and after any change.
./manage.py test
To edit the css while coding:
./manage.py sass static/sass/ static/css/ --watch -t compressed