How josephamuasi001/urban-bites works
Urban Bite is a restaurant ordering product with a React frontend and FastAPI/Supabase backend. The user-facing path is restaurant discovery, restaurant/menu viewing, then cart and checkout routes; backend APIs expose restaurant, menu, order, order-item, user, and review operations. The sampled detail page and service show restaurant/menu fetching, while the cart and checkout implementations were not sampled. Frontend-to-backend endpoint matching is therefore not asserted as a direct edge.
Main entry points: main.py FastAPI app · AppRoutes.jsx Page routes · supabase.py Supabase client · RestaurantDetailsPage.jsx Restaurant details
Components 30
Web experience
- Web entry
frontend/src/main.jsx - Page routes
frontend/src/routes/AppRoutes.jsx - Home discovery
frontend/src/pages/HomePage.jsx - Restaurant browse
frontend/src/pages/RestaurantsPage.jsx - Restaurant details
frontend/src/pages/RestaurantDetailsPage.jsx - Restaurant display
frontend/src/components/RestaurantHeader.jsx - Menu display
frontend/src/components/MenuSection.jsx - Restaurant client
frontend/src/services/restaurantService.js - Menu client
frontend/src/services/menuService.js - Cart state
frontend/src/context/CartContext.jsx - Cart and checkout
frontend/src/pages/CartPage.jsx - Order history
frontend/src/pages/OrdersPage.jsx
API routing
- FastAPI app
backend/app/main.py - Restaurant routes
backend/app/routers/restaurants.py - Menu routes
backend/app/routers/menus.py - Order routes
backend/app/routers/orders.py - Order-item routes
backend/app/routers/order_items.py - Review routes
backend/app/routers/reviews.py
Identity
- User routes
backend/app/routers/users.py - Token validation
backend/app/auth/auth_bearer.py - Token creation
backend/app/auth/jwt_handler.py
Ordering domain
- Restaurant service
backend/app/services/restaurant_service.py - Menu service
backend/app/services/menu_service.py - Order service
backend/app/services/order_service.py - Order-item service
backend/app/services/order_item_service.py - Review service
backend/app/services/review_service.py - User service
backend/app/services/user_service.py - Supabase client
backend/app/database/supabase.py
Other components
- Shopper
- HTTP API
Connections 36
- Shopper → Web entry: opens
frontend/src/main.jsx - Web entry → Page routes: renders
- Page routes → Home discovery: routes to
frontend/src/routes/AppRoutes.jsx - Page routes → Restaurant browse: routes to
frontend/src/routes/AppRoutes.jsx - Page routes → Restaurant details: routes to
frontend/src/routes/AppRoutes.jsx - Page routes → Cart and checkout: routes to
frontend/src/routes/AppRoutes.jsx - Page routes → Order history: routes to
frontend/src/routes/AppRoutes.jsx - Web entry → Cart state: provides
frontend/src/main.jsx - Restaurant details → Restaurant client: fetches via
frontend/src/pages/RestaurantDetailsPage.jsx - Restaurant details → Menu client: fetches via
frontend/src/pages/RestaurantDetailsPage.jsx - Restaurant details → Restaurant display: renders
frontend/src/pages/RestaurantDetailsPage.jsx - Restaurant details → Menu display: renders
frontend/src/pages/RestaurantDetailsPage.jsx - Restaurant client → HTTP API: fetches
frontend/src/services/restaurantService.js - Menu client → HTTP API: fetches
frontend/src/services/menuService.js - FastAPI app → Restaurant routes: registers
backend/app/main.py - FastAPI app → Menu routes: registers
backend/app/main.py - FastAPI app → Order routes: registers
backend/app/main.py - FastAPI app → Order-item routes: registers
backend/app/main.py - FastAPI app → Review routes: registers
backend/app/main.py - FastAPI app → User routes: registers
backend/app/main.py - Restaurant routes → Restaurant service: calls
backend/app/routers/restaurants.py - Menu routes → Menu service: calls
backend/app/routers/menus.py - Order routes → Order service: calls
backend/app/routers/orders.py - Order-item routes → Order-item service: calls
backend/app/routers/order_items.py - Review routes → Review service: calls
backend/app/routers/reviews.py - User routes → User service: calls
backend/app/routers/users.py - Order routes → Token validation: depends on
backend/app/routers/orders.py - Review routes → Token validation: depends on
backend/app/routers/reviews.py - User routes → Token validation: depends on
backend/app/routers/users.py - Token validation → Token creation: uses key
backend/app/auth/auth_bearer.py - Restaurant service → Supabase client: queries
backend/app/services/restaurant_service.py - Menu service → Supabase client: queries
backend/app/services/menu_service.py - Order service → Supabase client: reads and writes
backend/app/services/order_service.py - Order-item service → Supabase client: queries
backend/app/services/order_item_service.py - Review service → Supabase client: reads and writes
backend/app/services/review_service.py - User service → Supabase client: queries