How rs-labhub/festigo works
Main Components
a. Frontend Layer:
• Client-side Components (Next.js Pages and Components)
• Authentication Views (/auth)
• Dashboard Views (/dashboard)
• Home Page Components
• Common Components (forms, buttons, modals)
b. Backend Layer:
• API Routes (/api)
• Authentication Services
• Event Management
• Chat/Communication Services
• Vendor Management
• Guest Management
• Payment Processing
• Venue Management
c. Database Layer:
• Prisma ORM
• Database Tables (based on schema.prisma)
• Users
• Events
• Vendors
• Guests
• Channels
• Messages
• Venues
• Payments
Architecture Pattern Representation
[Client Layer (Next.js Frontend)]
• ↕
[API Layer (Next.js API Routes)]
• ↕
[Database Layer (Prisma + DB)]
Key Relationships to Highlight
• User Authentication Flow
• Event Management Flow
• Communication Systems (Chat/Channels)
• Payment Processing
• Guest Management and RSVP System
[Frontend Layer]
• Public Pages
• Home, About, Features
• Auth Pages
• Login, Signup, Password Reset
• Dashboard
• Event Management
• Calendar
• Chat Room
• Floor Planning
• Guest Management
• Vendor Management
[API Layer]
• Auth Services
• Event Services
• Chat Services
• Guest Services
• Vendor Services
• Payment Services
[Database Layer]
• All Prisma Models
Additional Elements
• WebSocket connections for real-time features (chat)
• Email service integration (Utils/sendMail.ts)
• Authentication flow
• File storage for assets
Important Flows
• User authentication flow
• Event creation and management flow
• Guest invitation and RSVP flow
• Vendor management flow
• Payment processing flow
• Real-time communication flow
Technical Stack Indicators
• Next.js
• Prisma ORM
• TypeScript
• Tailwind CSS
• Email Service
• Payment Gateway
This system design should effectively communicate the application's architecture while highlighting its event planning-specific features and real-time communication capabilities.