Fastapi Boilerplate

Installing python packages

From the docker container terminal inside /app.

Install a package:

poetry add <package>

Install a dev package:

poetry add --dev <package>

Update all package:

poetry update

Update one or more package:

poetry update <package>

Running tests

From the docker container terminal inside /app.

pytest --asyncio-mode=auto

Auto Code Linting

From the docker container terminal inside /app.

black .
ruff --fix .

Using the CLI

Several commands have been created to do things like create users.

From the docker container terminal inside /app.

# to view available commands
python cli.py --help