FastAPI Auth boilerplate that uses SQLAlchemy, Postgres, Alembic, and Docker.
Clone the repo
https://github.com/Sebsebzen/Fastapi-Auth-Boilerpalte.git
Add missing environment variables to .env
file in fastapi
folder (optional)
MAILGUN_EMAIL=<mailgun-email>
MAILGUN_PASSWORD=<mailgun-password>
then run
$ docker-compose up -d --build
when starting for the first time run
$ docker-compose exec fastapi alembic upgrade head
alternatively, for development mode run
$ docker-compose up -d db
$ uvicorn app.main:app --reload
Access API endpoints under
http://localhost:8000/docs