/fastapi_sqlalchemy_alembic

Simple implementation for Fastapi with a relational database and migrations

Primary LanguagePython

fastapi_sqlalchemy_alembic

This repo is used as a part of a tutorial to show how to use Fastapi and pydantic with Sqlalchemy, postgresql, Alembic(for migrations).

The full article is published on medium here

How to build

docker-compose build

How to run

docker-compose up

and go to:

http://localhost:8000

Documentation

swagger - http://localhost:8000/docs
redoc - http://localhost:8000/redoc

Pgadmin4

http://localhost:5050