This is a version of the FastAPI application template (https://github.com/csmqbusy/fastapi-template) with the implemented functionality of authentication using cookies and JWT (JSON Web Tokens).
- Clone project.
- Install the uv package manager if it is not already installed (https://docs.astral.sh/uv/getting-started/installation/).
- Apply the
uv synccommand to install dependencies. - Rename
.env.dev.exampletoenv.dev - mkdir
certsin the root folder. - Generate two pairs of secret keys (RSA256) in
certsfolder:access_private.pem,access_public.pem,refresh_private.pem,refresh_public.pem - Apply migrations by the
alembic upgrade headcommand.
To start the tests, you must run the docker-container (docker compose up -d) and create a database in it with the example_db_test name by default.