How krishnaharesh/couples-cafe works
Couple’s Café is a static café-discovery and ordering website with a small Express server. The customer flow is to browse date-friendly cafés and menus, add menu items to a persistent cart, and proceed to ordering or a reservation. The sampled code also shows café and menu data stores, favorites, and date-occasion recommendations. Admin authentication is provided through server API routes. Page-specific wiring and several workflows are not shown in the excerpts, so those relationships are omitted rather than inferred.
Main entry points: server.js Admin API · index.html Café website · app.js Café discovery · cafes-data.js Café store
Components 17
Customer experience
- Café website
index.html - Café discovery
app.js - Date occasions
dates.html - Menu browsing
menu.html - Cart and checkout
app.js - Reservations
order.html
Café and menu data
- Café and occasion data
cafes-data.js - Café store
cafes-data.js - Menu catalog
cafes-data.js - Menu store
cafes-data.js - Browser storage
Administration
- Admin console
admin.html - Admin API
server.js - Admin sessions
server.js
Web serving
- Web browser
- Express static server
server.js
Other components
- Couples
Connections 13
- Couples → Café website: opens
README.md - Café website → Café discovery: runs
app.js - Café discovery → Café store: uses
app.js - Café store → Café and occasion data: loads and saves
cafes-data.js - Date occasions → Café and occasion data: uses recommendations
- Menu browsing → Menu store: uses
- Menu store → Menu catalog: loads and saves
cafes-data.js - Cart and checkout → Browser storage: persists cart
app.js - Reservations → Browser storage: stores reservations
- Web browser → Express static server: requests pages
server.js - Express static server → Admin API: routes admin requests
server.js - Admin console → Admin API: calls API
- Admin API → Admin sessions: tracks tokens
server.js