This application provides a robust authentication and organization management system for a multi-tenant SaaS platform. It offers user authentication, organization creation, member management, and role-based access control, along with statistical insights and email notifications for key user actions.
- Add an
.env
file
# Application settings
HOST=0.0.0.0
PORT=8000
WORKERS_COUNT=1
RELOAD=False
ENVIRONMENT=DEV
LOG_LEVEL=INFO
# OpenTelemetry settings
OPENTELEMETRY_ENDPOINT=
# Database settings
DATABASE_URL=postgresql+asyncpg://postgres:password@localhost/product_fusion
# Security settings
SECRET_KEY=your_secret_key_here
ACCESS_TOKEN_EXPIRE_MINUTES=1440
JWT_ALGORITHM=HS256
REFRESH_TOKEN_EXPIRE_DAYS=30
# SMTP settings
SMTP_SERVER=smtp.gmail.com
SMTP_PORT=465
SMTP_USERNAME=your_smtp_username_here
SMTP_PASSWORD=your_smtp_password_here
- Install poetry
pip3 install --upgrade pip && pip3 install poetry
- Install dependencies
poetry install
- Run the project
hypercorn product_fusion_backend.web.application:pf_app --reload --bind "0.0.0.0:8000"