/fastapi-boilerplate

Boilerplate for Fastapi web framework

Primary LanguagePython

Fastapi Boilerplate

In Progress

Task

  • Define Project Structure
    • Resource
    • Service
    • Repository
    • Model
  • PostgresSQL Integrations
    • Migration
    • Query
  • User Module
    • CRUD Api
    • Encrypt Password
    • Swagger
  • Role Module
    • CRUD Api
    • Swagger
  • Post Module
    • CRUD Api
    • Swagger
  • Role Module
    • CRUD SQL
  • User Module
    • CRUD SQL
  • Post Module
    • CRUD SQL
  • CLI App (using typer)
    • Seed data
    • Migration (Optional)
  • Authentication and Authorization
    • JWT Integration
    • Login Route (Auth Route)
    • Logout Route (Auth Route)
    • Authorization / Guard / Permissions
      • User Authorization
      • Post Authorization
  • Unit Testing
    • Login & Logout (Auth Services)
    • User Services
    • Role Services
    • Post Services
  • Integration Testing
    • Auth Repository
    • Auth Resources
    • User Repository
    • User Resources
    • Role Repository
    • Role Resources
    • Post Repository
    • Post Resources

How To use

  1. Create new alembic migrationalembic revision -m "your message"
  2. Auto generate migration alembic revision --autogenerate -m "your message"
  3. uvicorn main:app --reload