How rajaaltus/peppermint works
Main System Components
a) Frontend Layer:
• Next.js Client Application (apps/client)
• Documentation Site (apps/docs)
• Landing Page (apps/landing)
b) Backend Layer:
• API Server (apps/api)
• Authentication Services
• Email Processing System
• File Storage System
c) Database Layer:
• PostgreSQL Database (indicated by Prisma schema and migrations)
Key Architectural Elements
a) Client-Side Architecture:
[Web Clients] → [Next.js Frontend]
• ↓
• [Component Layer]
• ↓
• [State Management]
• ↓
• [API Integration]
b) Server-Side Architecture:
[API Layer (Express.js)]
• ↓
[Controller Layer]
• ↓
[Service Layer]
• ↓
[Data Access Layer (Prisma)]
• ↓
[PostgreSQL Database]
Integration Points
Crucial integrations:
• Authentication flows (OAuth, OIDC, SAML)
• Email integration (IMAP, SMTP)
• Webhook system
• File storage system
• Notification system
Specific Implementation Details
Key features:
• Ticket management flow
• User role management (RBAC)
• Email queue system
• Notification pipeline
• Document/file handling
[Client Layer]
• ↓
[API Gateway]
• ↓
[Service Layer]
• ↓
[Data Layer]