/fastapi-boilerplate

Fastapi, Pydantic, SQLAlchemy with GRPC Authentication and Mail Services

Primary LanguagePython

Fastapi Boilerplate

Running

Using docker compose:

docker compose up

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>

Show package dependency tree:

poetry show --tree

Running tests

From the docker container terminal inside /app.

pytest

Auto Code Linting

From the docker container terminal inside /app.

black .
ruff check --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