Skip to content

nationalarchives/fastapi-application-template

Repository files navigation

TNA Python FastAPI Application

Quickstart

# Build and start the container
docker compose up -d

Docs

http://localhost:83/docs

Run tests

docker compose exec dev poetry run python -m pytest

Format and lint code

docker compose exec dev format

Environment variables

In addition to the base Docker image variables, this application has support for:

Variable Purpose Default
CONFIG The configuration to use config.Production
BASE_URI The base URI for the API /api/v1
FORCE_HTTPS Redirect requests to HTTPS as part of the CSP none

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages