How subha035/tastybite-frontend works
TastyBite is a React restaurant frontend spanning customer discovery and transactions, authentication, and an admin dashboard. The main customer journey is to browse menu and offers, place and pay for an order or submit a reservation, while admins manage menu, offers, orders, reservations, and activity. App.jsx is the evidenced routing/orchestration layer; apiService.js centralizes backend requests. Some documented capabilities, including chat and contact, are represented from the README; unsampled wiring and external service details are not inferred.
Main entry points: App.jsx Tab routing · apiService.js API client · PlaceOrder.jsx Cart and checkout · MenuSection.jsx Menu browser
Components 25
App Shell
- React entry
src/main.jsx - Tab routing
src/App.jsx - Navigation sidebar
src/components/Sidebar.jsx
Customer Experience
- Restaurant home
src/components/HomeSection.jsx - Menu browser
src/components/MenuSection.jsx - Cart and checkout
src/components/PlaceOrder.jsx - Table booking
src/components/ReservationsSection.jsx - Offers display
src/components/OffersSection.jsx - AI chat
src/components/ChatArea.jsx - Contact information
src/components/ContactSection.jsx - Menu quick view
src/components/RightPanel.jsx - Customer sign-in
src/components/AuthModal.jsx
Admin Operations
- Admin login
src/components/AdminLogin.jsx - Admin dashboard
src/components/AdminPanel.jsx - Menu management
src/components/MenuManager.jsx - Offer management
src/components/OffersManager.jsx - Order management
src/components/AdminOrders.jsx - Reservation management
src/components/AdminReservations.jsx
Integration Services
- API client
src/services/apiService.js - Firebase auth setup
src/firebaseConfig.js
Other components
- Restaurant guest
- Admin user
- TastyBite backend
- Firebase Authentication
- Razorpay payments
Connections 40
- React entry → Tab routing: renders
src/main.jsx - Tab routing → Navigation sidebar: renders
src/App.jsx - Tab routing → Restaurant home: routes to
src/App.jsx - Tab routing → Menu browser: routes to
src/App.jsx - Tab routing → Cart and checkout: routes to
src/App.jsx - Tab routing → Table booking: routes to
src/App.jsx - Tab routing → Offers display: routes to
src/App.jsx - Tab routing → AI chat: routes to
src/App.jsx - Tab routing → Contact information: routes to
src/App.jsx - Tab routing → Menu quick view: renders
src/App.jsx - Tab routing → Admin login: routes to
src/App.jsx - Tab routing → Admin dashboard: routes to
src/App.jsx - Tab routing → Menu management: routes to
src/App.jsx - Tab routing → Offer management: routes to
src/App.jsx - Tab routing → Order management: routes to
src/App.jsx - Tab routing → Reservation management: routes to
src/App.jsx - Restaurant guest → React entry: opens app
- Admin user → React entry: opens app
- Customer sign-in → API client: auth requests
src/components/AuthModal.jsx - Customer sign-in → Firebase auth setup: uses auth
src/components/AuthModal.jsx - Firebase auth setup → Firebase Authentication: initializes
src/firebaseConfig.js - Restaurant home → API client: loads menu
src/components/HomeSection.jsx - Menu browser → API client: loads menu
src/components/MenuSection.jsx - Menu browser → API client: creates item
src/components/MenuSection.jsx - Cart and checkout → API client: loads menu and offers
src/components/PlaceOrder.jsx - Cart and checkout → API client: submits order
src/components/PlaceOrder.jsx - Cart and checkout → Razorpay payments: starts checkout
- Table booking → API client: creates booking
src/components/ReservationsSection.jsx - Offers display → API client: loads offers
src/components/OffersSection.jsx - AI chat → API client: sends chat
- Menu quick view → API client: loads menu
src/components/RightPanel.jsx - Tab routing → API client: sends chat
src/App.jsx - Tab routing → API client: manages reservations
src/App.jsx - Admin login → API client: authenticates admin
src/components/AdminLogin.jsx - Admin dashboard → API client: loads activity
src/components/AdminPanel.jsx - Menu management → API client: manages menu
src/components/MenuManager.jsx - Offer management → API client: manages offers
src/components/OffersManager.jsx - Order management → API client: manages orders
src/components/AdminOrders.jsx - Reservation management → API client: manages bookings
- API client → TastyBite backend: HTTP requests
src/services/apiService.js