demetrius-mp / fastapi-base

FastAPI starter template using SQLModel as the ORM. Includes JWT authentication and basic alembic configuration for migrations. Built with Poetry.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fastapi-base

FastAPI starter template using SQLModel. Includes JWT authentication and basic alembic configuration for migrations.

Explaining the architecture

src
├── core
│   ├── dependencies.py
│   └── security.py
├── database.py
├── __init__.py
├── models
│   ├── __init__.py
│   └── user.py
├── routers
│   ├── auth.py
│   ├── http_exceptions.py
│   └── __init__.py
├── scripts.py
└── settings.py

src/core/dependencies.py: dependency injection code (database session, current user) should be here.

src/core/security.py: authentication code (hashing passwords, creating JWT's, adding a user to the database) should be here.

About

FastAPI starter template using SQLModel as the ORM. Includes JWT authentication and basic alembic configuration for migrations. Built with Poetry.

License:MIT License


Languages

Language:Python 94.9%Language:Mako 3.3%Language:Shell 1.8%