Auth Service in FastAPI
- Install Poetry.
pip install poetry
- Access Poetry shell.
poetry shell
- Install dependencies.
poetry install
Run cp .env.example .env
Run docker-compose up -d
Migrations can be autogenerated using the generate_migrations.sh
script.
We use ruff as linter, to run them on pre-commit please run pre-commit install
.
- You can run tests locally by running
./tests-start.sh
(this will use your local database). - Tests can also run in docker container with the following command:
docker-compose exec api ./tests-start.sh
.