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 sync
command to install dependencies. - Rename
.env.dev.example
toenv.dev
- mkdir
certs
in the root folder. - Generate two pairs of secret keys (RSA256) in
certs
folder:access_private.pem
,access_public.pem
,refresh_private.pem
,refresh_public.pem
- Apply migrations by the
alembic upgrade head
command.
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.