- Enter the main directory
- Create new virtualenv based on Py3
virtualenv .venv -p python3(or any other tool for managing virtual envs in Python) - Activate virtualenv
source .venv/bin/active - Install requried dependencies
pip install -r requirements.txt - Enter Django directory
cd ads_dashboard - Sync the database
python manage.py migrate - Load initial data
python manage.py load_stats - Start server
python manage.py runserver - Application is now accesible at
http://localhost:8000/
Or simply:
- Run
./dev_setup.sh - Point browser to
http://localhost:8000/
- Tests (not even single one)
- Docker setup through docker-compose
- Separation of backend (Django, GraphQL) and frontend (React, Apollo)
- Keeping the secrets secret (env variables)
- Many other