Skip to content

bigSAS/fast-api-backend-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

moved to GitLab https://gitlab.com/bigSAS/fast-api-backend-starter/

Fast API backend starter Build Status

Usage

With docker-compose

To run the application you need to have Docker and docker-compose installed. So, just execute from the root directory:

docker-compose up

Swagger

/docs

OpenAPI 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

Tests

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

Todoski itd

todosy

  • 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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages