How sk394/cuisine-connect works
Main System Components
a. Frontend Layer (Next.js Application)
• Client-side components (/frontend/src/components)
• Page routes (/frontend/src/app)
• Authentication flows (/frontend/src/app/auth)
• Dashboard features (/frontend/src/app/dashboard)
• API integration layer (/frontend/src/app/api)
b. Backend Layer (Node.js/Express)
• Controllers (/backend/Controller)
• Routes (/backend/routes)
• Database configuration (/backend/DB)
c. Database Layer
• Prisma ORM (both frontend and backend have prisma schemas)
• Underlying database (likely PostgreSQL based on Prisma usage)
Key Interactions to Highlight
• Client-server communication between frontend and backend
• API routes handling (both Next.js API routes and backend Express routes)
• Database interactions through Prisma
• Authentication flows (NextAuth.js integration)
• File upload flows (UploadThing integration)
Specific Components
Frontend:
• Next.js Pages and Routes
• Authentication Components
• Recipe Management Components
• Dashboard Components
• UI Component Library
• State Management (React Query provider)
• Theme Provider
• Session Provider
Backend:
• Recipe Controller
• User Controller
• Bookmark Controller
• Comment Controller
• Rating Controller
• Route Handlers
• Database Connection Layer
Infrastructure Elements
• Docker containers (indicated by Dockerfile presence)
• Development environment setup
• API endpoints structure
Database Layer
• Component types and their representations
• Any abbreviated terms or symbols
Keep the abstraction level high enough to be understandable but detailed enough to show the key architectural decisions, especially the dual-prisma setup and the separation of concerns between frontend and backend services.