Skip to content

A production-style backend API that powers a SaaS application used by multiple organizations, with strict data isolation, authentication, and role-based access control. Written in Python

Notifications You must be signed in to change notification settings

mikenkan001/Multi_Tenant-vPython

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ FastAPI Multi-Tenant SaaS Backend

A production-ready, high-performance Python backend for a SaaS product with multi-tenancy, authentication, and role-based access control. Built with modern async Python and FastAPI.

✨ Features

  • Multi-Tenancy: Each organization has completely isolated data
  • JWT Authentication: Secure token-based authentication system
  • Role-Based Access Control: Admin and member roles with permissions
  • Async/await: High-performance async database queries and API endpoints
  • SQLite Database: File-based database with full control
  • Production Ready: Logging, error handling, configuration management
  • Auto-generated Docs: Interactive API documentation with Swagger/Redoc
  • Redis Caching: Optional Redis integration for performance

πŸ—οΈ Tech Stack

  • Python 3.11+ - Modern Python with async support
  • FastAPI - High-performance web framework
  • SQLAlchemy 2.0 - Async ORM with SQLite/PostgreSQL support
  • Pydantic v2 - Data validation and settings management
  • JWT - JSON Web Tokens for authentication
  • Redis (optional) - Caching for improved performance
  • Uvicorn - ASGI server

πŸ“ Project Structure

About

A production-style backend API that powers a SaaS application used by multiple organizations, with strict data isolation, authentication, and role-based access control. Written in Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages