- Copy .env.example to .env
- Fill in the .env
- BANK_TOKEN - Fiobanka token for API
- BANK_IBAN - IBAN of the receiving account
- BANK_ACCOUNT - Account number eg. 1234567890/1234
- EMAIL_HOST=smtp.seznam.cz - outgoing mail server
- EMAIL_PORT=465 - port of the outgoing mail server
- EMAIL_HOST_USER
- EMAIL_HOST_PASSWORD
- EMAIL_UNSUBSCRIBE_TOKEN - random string, is used for hashing
- USER_ACTIVATION_TOKEN - random string, is used for hashing
- DEPLOYED_URL=http://baka.docker - URL of the deployed app
- Make sure port 80 is not used
docker-compose build --no-cache
docker-compose up -d
- Check localhost
docker ps
- find the container hash of the backenddocker exec -it <container_hash> bash
python manage.py createsuperuser
In order to get the bank transactions, we need to set up a celery periodic task.
- Go to
/admin
and log in as root - Go to Periodic tasks
- Add a new periodic task for
orders.tasks.get_bank_statement
with an interval of 10 seconds