How gtbitsofgood/heart-of-passion works
Main System Components
a) Frontend Layer:
• Next.js Pages & Components
• Client-side tRPC API Integration
• Theme System (Chakra UI + Tailwind)
b) Backend Layer:
• Next.js API Routes
• tRPC Routers
• Authentication System
• Database Models
c) Database Layer:
• MongoDB Instance
• Mongoose Models
Component Relationships
[Client Browser] ←→ [Next.js Frontend] ←→ [tRPC API Layer] ←→ [MongoDB]
• ↕
• [Google Auth Service]
Detailed Component Breakdown
Frontend Section:
• Backlog Management
• Calendar System
• Fundraising Planning
• User Management
• Expense Tracking
• Form Donations
• Chapter Management
API/Backend Section:
• TRPC routers:
• Chapter Router
• Donor Router
• Event Router
• Form Donations Router
• Fund Router
• Fundraiser Router
• Retreat Router
• User Router
Database Section:
• Mongoose models:
• Chapter
• Donor
• Event
• FormDonations
• Fund
• Fundraiser
• Retreat
• User
• Session
• UserKey
Implementation Details
Key implementation aspects:
• API route handling through Next.js
• tRPC procedure definitions
• Model relationships in MongoDB
• Authentication flow with sessions
• Frontend component hierarchy