moved to GitLab https://gitlab.com/bigSAS/fast-api-backend-starter/
To run the application you need to have Docker
and docker-compose
installed. So, just execute from the root directory:
docker-compose up
/docs
/redoc
So, run the first migration:
docker-compose exec app alembic upgrade head
Create migration:
docker-compose exec app alembic revision --autogenerate -m "{message}"
docker-compose exec app alembic upgrade head
To run the tests:
docker-compose exec app pytest
To re-run the tests, firstly, we recreate the database because there are unit tests which create resources, so if it already exists the test will fail:
Remove the data files before recreate the container
rm -fr db_data/*
Recreate the db service:
docker-compose stop db
docker-compose rm db
docker-compose up -d db
Finally, re-run the migration and the tests:
docker-compose exec app alembic upgrade head
docker-compose exec app pytest
-
dodac skrypt/komende z cli aby utworzy default admin usera admin:admin
-
pobadac endpointy ktore moga rzucac not found z repository i lapac jakos spoko err i konwertowac na api statusy 400 / 404 ect.
-
dodac permission IsGroupMember i w JWT update aby zwracalo id grup do ktorych nalezy
-
refresh JWT
-
secrety do enva / konfiga
-
sql logging only local dev
-
gitlab yml / travis ? / jenkins ?
-
readme
-
fix tests Cucumber tests?
-
example ficzer