- Implementation of JWT authentication
- Used mongodb ('beanie')
-
Create a
.env
file inapp/
directory -
Populate with the following variables
JWT_SECRET_KEY=thisisaauthfastapiapp JWT_REFRESH_SECRET_KEY=thisisaauthfastapiapp MONGO_CONNECTION_STRING=mongodb://localhost:27017 PORT=8000
-
Install poetry
-
To install dependencies
poetry install
Note: This will also create a virtual environment
-
To start app
poetry run python -m app
Note: You can test endpoints via Swagger docs at /docs