How hiroyokii/gemmas-kitchenette works
Gemma’s Kitchenette is a web food-ordering and business-management system. Customers browse the daily menu, build a cart, place pickup or delivery orders, choose COD or simulated GCash, and track orders; admins manage menus, food, inventory, purchases, orders, and reporting. The React client routes role-specific pages and calls an Express API; the API exposes domain routes and persists application data through Prisma/PostgreSQL. README capabilities fill in unsampled subsystems, but their internal call paths are not asserted here.
Main entry points: app.ts Express API · AppRoutes.tsx Role-based routes · prisma.ts PostgreSQL database · customer Customer pages
Components 23
Web client
- Role-based routes
client/src/routes/AppRoutes.tsx - Customer pages
client/src/pages/customer - Admin pages
client/src/pages/admin - Session and auth
client/src/providers/AuthProvider.tsx - API client
client/src/api/axios.ts - Auth service
client/src/services/auth.service.ts - Order service
client/src/services/order.service.ts
API and domain
- Express API
server/src/app.ts - Auth routes
server/src/routes/auth.routes.ts - Order routes
server/src/routes/order.routes.ts - Review routes
server/src/routes/review.routes.ts - Auth controller
server/src/controllers/auth.controller.ts - Order controller
server/src/controllers/order.controller.ts - Review controller
server/src/controllers/review.controller.ts - Identity and access
server/src/services/auth.service.ts
Business operations
- Ordering and payment
server/src/services/order.service.ts - Reviews and ratings
server/src/services/review.service.ts - Menu and inventory
server/src - Reports and monitoring
server/src
Persistence and media
- PostgreSQL database
server/src/lib/prisma.ts - Food image storage
Other components
- Customer
- Admin
Connections 26
- Customer → Role-based routes: browses and orders
- Admin → Role-based routes: manages operations
- Role-based routes → Customer pages: routes customer
client/src/routes/AppRoutes.tsx - Role-based routes → Admin pages: routes admin
client/src/routes/AppRoutes.tsx - Session and auth → Auth service: requests sessions
client/src/providers/AuthProvider.tsx - Auth service → API client: calls API
client/src/services/auth.service.ts - Order service → API client: calls API
client/src/services/order.service.ts - API client → Express API: sends requests
- Express API → Auth routes: mounts
server/src/app.ts - Express API → Order routes: mounts
server/src/app.ts - Express API → Review routes: mounts
server/src/app.ts - Auth routes → Auth controller: dispatches
server/src/routes/auth.routes.ts - Order routes → Order controller: dispatches
server/src/routes/order.routes.ts - Review routes → Review controller: dispatches
server/src/routes/review.routes.ts - Auth controller → Identity and access: calls
server/src/controllers/auth.controller.ts - Order controller → Ordering and payment: calls
server/src/controllers/order.controller.ts - Review controller → Reviews and ratings: calls
server/src/controllers/review.controller.ts - Admin pages → Menu and inventory: manages
- Admin pages → Reports and monitoring: views reports
- Customer pages → Ordering and payment: places and tracks
- Customer pages → Reviews and ratings: submits feedback
- Ordering and payment → PostgreSQL database: persists orders
- Reviews and ratings → PostgreSQL database: stores ratings
server/src/services/review.service.ts - Menu and inventory → PostgreSQL database: stores operations data
server/src/services/review.service.ts - Reports and monitoring → PostgreSQL database: reads business data
server/src/services/review.service.ts - Menu and inventory → Food image storage: uploads images