How kubekitchen/kubekitchen-app works
This is a food-ordering application with a React frontend and separate authentication, restaurant, menu, and order services. The user-facing flow covers account registration or login, browsing restaurants and menus, building a cart, and viewing orders; backend routes provide restaurant and menu management, ratings, and order status operations. The source excerpts show frontend routing/API setup and several service route-to-model calls. Service-to-service and deployed HTTP wiring are not shown, so those connections are omitted.
Main entry points: App.jsx App routing · axios.js API client · AuthContext.jsx Auth state · Restaurants.jsx Restaurant browsing
Components 20
Customer frontend
- App routing
services/frontend/src/App.jsx - Auth state
services/frontend/src/context/AuthContext.jsx - Cart state
services/frontend/src/context/CartContext.jsx - API client
services/frontend/src/api/axios.js - Home page
services/frontend/src/pages/Home.jsx - Login page
services/frontend/src/pages/Login.jsx - Register page
services/frontend/src/pages/Register.jsx - Restaurant browsing
services/frontend/src/pages/Restaurants.jsx - Menu browsing
services/frontend/src/pages/RestaurantMenu.jsx - Cart sidebar
services/frontend/src/components/CartSidebar.jsx - Order history
services/frontend/src/pages/Orders.jsx
Authentication service
- Auth routes
services/auth-service/src/routes/auth.js - User records
services/auth-service/src/models/User.js
Restaurant service
- Restaurant routes
services/restaurant-service/src/routes/restaurant.js - Restaurant records
services/restaurant-service/src/models/Restaurant.js
Menu service
- Menu routes
services/menu-service/src/routes/menu.js - Menu records
services/menu-service/src/models/Menu.js
Order service
- Order routes
services/order-service/src/routes/order.js - Order records
services/order-service/src/models/Order.js
Other components
- Customer
Connections 22
- Customer → App routing: uses
services/frontend/src/App.jsx - App routing → Auth state: provides auth
services/frontend/src/App.jsx - App routing → Cart state: provides cart
services/frontend/src/App.jsx - App routing → Home page: routes to
services/frontend/src/App.jsx - App routing → Login page: routes to
services/frontend/src/App.jsx - App routing → Register page: routes to
services/frontend/src/App.jsx - App routing → Restaurant browsing: routes to
services/frontend/src/App.jsx - App routing → Menu browsing: routes to
services/frontend/src/App.jsx - App routing → Order history: routes to
services/frontend/src/App.jsx - Auth state → API client: calls
services/frontend/src/context/AuthContext.jsx - Restaurant browsing → API client: calls
services/frontend/src/pages/Restaurants.jsx - Menu browsing → API client: calls
services/frontend/src/pages/RestaurantMenu.jsx - Order history → API client: calls
services/frontend/src/pages/Orders.jsx - Cart sidebar → Cart state: reads and updates
services/frontend/src/components/CartSidebar.jsx - Auth routes → User records: reads and writes
services/auth-service/src/routes/auth.js - Restaurant routes → Restaurant records: reads and writes
services/restaurant-service/src/routes/restaurant.js - Menu routes → Menu records: reads and writes
services/menu-service/src/routes/menu.js - Order routes → Order records: reads and writes
services/order-service/src/routes/order.js - API client → Auth routes: HTTP mapping
- API client → Restaurant routes: HTTP mapping
- API client → Menu routes: HTTP mapping
- API client → Order routes: HTTP mapping