How nerdbord/good-dev-hunting-app works
Main System Components
The system architecture should be divided into these key layers:
a) Client Layer:
• Next.js Frontend Application (under apps/platform-app/src)
• UI Component System (under packages/ui-system)
• Discord Bot Interface (under apps/hunty-ai-bot)
b) Server Layer:
• Next.js API Routes (under apps/platform-app/src/app/api)
• Authentication System (using NextAuth)
• Backend Services (under src/backend)
c) Database Layer:
• PostgreSQL Database (managed through Prisma)
d) External Services:
• Discord Integration
• GitHub OAuth
• LinkedIn OAuth
• MailerLite & MailerSend
• Groq Service
• Dropbox Service
Connection Flows
a) Authentication Flow:
• User → OAuth Providers → Backend → Database
• Session Management through NextAuth
b) Profile Management Flow:
• Frontend → API Routes → Profile Service → Database
• Image Upload → Storage Service
c) Search & Discovery Flow:
• Search Interface → API Routes → Profile Service → Database
• Filtering System → Profile Query Builder
Technical Details to Highlight
• Next.js 13+ App Router architecture
• Prisma ORM integration
• Authentication system
• File upload handling
• Real-time communication paths
• Cache layers if present