For the sake of simplicity and quicker MVP development, currently only the very basic entities should be implemented. Therefore features like multi-point routes, delivery time constraints and so on are omitted for now, but can be added later.
See the full database scheme https://app.quickdatabasediagrams.com/#/d/SXURVB
Routes will be calculated on the fly for the sake of interactivity and simplicity and will not be cached in the DB.
- Install python 3.
- Instal virtualenv (https://virtualenv.pypa.io/en/latest/installation/). For Mac/Unix:
pip install virtualenv
On Windows it should already be installed with your Python distribution.
- Create virtual environment called "venv" within the project directory. For Mac/Unix:
virtualenv -p python3 venv
- Activate virtual environemnt. For Mac/Unix:
source venv/bin/activate
For Windows:
venv/Scripts/activate.bat
- Install server-side dependencies. Go to server/traffic_optimizer, run
pip install -r requirements.txt
- Apply migrations:
python manage.py migrate
- Run server:
python manage.py runserver 0.0.0.0:8000