Update
git pull
docker-compose up -d --no-deps --build db flower redis web worker
Create python environment
python3 -m venv envsource env/bin/activatepip install -r requirements.txtConfigure project
cp django_bikes/template.env django_bikes/.envUSE_CACHE enable cache when filled with any valueSITE_NAME used for displaying the site namePOSTGRES_PASSWORD is not required in development mode (using SQLite3)SENDGRID_KEY is not required in development mode (using Maildev). See https://sendgrid.com/.SECRET_KEY can be generated using python : >>> from django.core.management.utils import get_random_secret_key
>>> get_random_secret_key()
Build the webapp
cd webappnpm inpm run buildBuild the email
cd email_buildernpm inpm run buildStart the server
./manage.py createsuperuser./manage.py migrate./manage.py runserverMany side tools are used in this project. You should have a working docker install to be able to use them.
Redis
Redis is used as a message queue for notifications and for worker actions. It is also used for caching.
To run: docker run -p 6379:6379 redis
Celery worker
A celery worker performs slow background actions, such as parsing GPX files.
Depends on: redis
To run: celery -A django_bike worker --loglevel=info
Maildev
Maildev is a local mail SMTP and client to test sending emails locally.
You can see your mail box at http://0.0.0.0:1081
To run: docker run -p 1081:80 -p 25:25 maildev/maildev
poetry version major|minor|patchrelease-notes/x.y.z.yml release note with the correct date.Flower
Flower helps you monitor you workers and your Redis messages. The site will work the same if not activated.
Depends on: redis
To run: celery flower -A django_bike