How manuel-heav/built works
Main Components Structure
a) Client Layer (Frontend)
• Next.js 14 application structure
• Main routes: Home, Projects, Auth, Project Form, and Edit Form
• Components directory with shared UI elements
b) API Layer (Backend)
• API routes structure using Hono.js
• Authentication flow with Better-Auth
• Project and comments endpoints
c) Data Layer
• Supabase and PostgreSQL
• Authentication storage
• Project and user data storage
Component Relationships
• Client-to-API interactions with RESTful endpoints
• API-to-Database flows
• Authentication flows between all layers
Specific Implementation Details
Frontend Components:
• Pages (/, /projects, /project/[id], etc.)
• Shared Components (UI components)
• Layout Components
• Theme Provider
API Routes:
• Auth Routes (/api/auth/[...all])
• Project Routes (/api/projects/*)
• Comments Routes (/api/comments/*)
Database:
• User Tables
• Project Tables
• Comments Tables
Detailed Elements
Frontend Layer:
• Next.js app router structure
• ProviderWrapper component
• Shared UI components
• Theme management system
API Layer:
• API endpoints grouped by feature
• Authentication middleware
• Protected routes
Database Layer:
• Supabase integration
• Main data models
• Authentication tables
Flow Indicators
• User authentication flow
• Project creation/editing flow
• Comment submission flow
• Data fetching patterns