How cgoat24/la-beuverie works
Main Components
Frontend Layer:
• SvelteKit Frontend (src/routes)
• Component Library (src/components)
• Client-side Stores (src/lib/stores)
• Form Validations (src/lib/validations)
API Layer:
• REST API endpoints (src/routes/api)
• Authentication Routes (src/routes/auth)
• Service Layer (src/lib/server/services)
Database Layer:
• PostgreSQL Database
• Prisma ORM Layer (prisma/schema.prisma)
Component Relationships
• Frontend components → API Layer (via HTTP requests)
• API Layer → Service Layer (internal calls)
• Service Layer → Prisma ORM → PostgreSQL
• Authentication flow between Frontend → Auth Routes → Database
Specific Implementation Details
• Drink Management System
• CRUD operations
• Search functionality
• Filtering system
• User Authentication System
• Login/Signup
• Session management
• Tag System
• Tag management
• Filtering by tags
Important Architectural Patterns to Highlight
• MVC-like pattern in the SvelteKit structure
• Service-based architecture for business logic
• Repository pattern via Prisma
• Component-based UI architecture
Technical Stack Indicators
• SvelteKit (Frontend framework)
• Prisma (ORM)
• PostgreSQL (Database)
• Docker (Container)
• TailwindCSS (Styling)
[Client Layer (Browser)]
• ↕
[Frontend Components]
• ↕
[API Routes Layer]
• ↕
[Service Layer]
• ↕
[Data Access Layer]
• ↕
[Database Layer]
Validation layer for data integrity
• Using consistent symbols
• Grouping related components
• Using straight lines for direct connections
• Including brief descriptions for complex interactions
This structure reflects the modern full-stack application architecture while maintaining clarity about the specific implementation details of La Beuverie.