is an app for managing client cards with loyality stamps. Basic assumptions:
- Django + DRF
- NextJS
- PostgreSQL
- Black
1. get inside container
2. python manage.py createsuperuser
3. (optional) user: seyhak, password: admin
docker-compose up
as for now hot refresh doesnt work from docker so to run fe
yarn dev
from particular container, black, isort, autoflake
isort .
autoflake * -r \--remove-all-unused-imports --remove-unused-variables --quiet -i
black <dir>
black .
1) REUSE_DB=1 python backend/manage.py test api.tests.test_endpoints.TestGetMyCards.test_get_my_cards -v=2
2) python backend/manage.py test --verbosity=2
Go to admin/
https://www.conventionalcommits.org/en/v1.0.0/
in container apk add gettext
python manage.py makemessages -l <language_code>
python manage.py makemessages -l en
python manage.py makemessages -l pl
python manage.py compilemessages
- go to backend/frontend
- run
gcloud app deploy