FastAPI Sample

FastAPI, SQLAlchemy, Alembic, Graphene, Amazon Cognito

Install Dependencies

Install the poetry package manager

Install the project dependencies:

$ poetry install

Local Development

Configure environment variable

$ cp .env.template .env
$ vi .env

Enter a poetry shell

$ poetry shell

Migration

$ alembic upgrade head

Run the live server

$ uvicorn main:app --reload

Build app's container image

$ docker build -t <tag> .

Docs