How borisghidaglia/meet-hn works
Main Components
A. Frontend Layer:
• Next.js App Router Structure (indicated by the app directory)
• Client Components (components directory)
• Server Components (app directory components)
• UI Components (components/ui directory)
B. Backend Layer:
• API Routes (app/_actions directory)
• Database Operations (app/_db directory)
• External Services Integration (app/_lib directory)
C. Database Layer:
• Schema (represented in app/_db/schema.ts)
• Models (City.ts and User.ts)
D. External Services:
• Telegram Integration (indicated by app/_lib/telegram.ts)
• Service Integration (MapComponent.tsx)
[Client Layer]
• ↕
[Next.js Server Layer]
• ↕
[Database Layer]
• ↕
[External Services]
Component Details
A. Client Layer (Top):
• Client-side hooks (useMediaQuery)
• Client-side routing components
B. Next.js Server Layer:
• App Router structure with routes:
• Root (/)
• City pages (/city/[...id])
• Feedback (/feedback)
• Delete (/delete)
• Server Actions (_actions directory)
• Data fetching and mutation flows
C. Database Layer:
• Main entities: User and City
• Relationships between entities
• Database client connections
D. External Services (Bottom):
• Telegram Integration
• Service
• Any other third-party services
Additional Elements
• A testing layer showing Playwright tests
• Build and configuration files
• Utility scripts (scripts directory)
• Authentication flow if present
Feedback submission
Remember to indicate the Next.js-specific features like server components, client components, and server actions, as these are crucial to understanding the application's architecture.