Skip to content

FastAPI authentication boilerplate using JWT, Postgres and Docker

Notifications You must be signed in to change notification settings

Sebsebzen/Fastapi-Auth-Boilerpalte

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FastAPI + SQLModel + Alembic

FastAPI Auth boilerplate that uses SQLAlchemy, Postgres, Alembic, and Docker.

Setup the project

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 the endpoints

Access API endpoints under

http://localhost:8000/docs

Screenshot 2022-12-27 at 15 50 00

About

FastAPI authentication boilerplate using JWT, Postgres and Docker

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published