How arjung352/tastebudstreat works
TasteBudsTreat is a MERN food-ordering demo: users browse restaurants and dishes, add items to a cart, and proceed through a simulated checkout; restaurant and menu management are also provided. The frontend uses Clerk for sign-in and offers an AI chatbot, while the backend exposes API routes, persists records in MongoDB, and integrates payment and email features. The graph follows documented and indexed relationships; some implementation details are unsampled, so uncertain connections are omitted.
Main entry points: backend.js Express server · App.jsx Route entry · Menu.jsx Menu browsing · menu.js Menu API
Components 30
Customer experience
- Route entry
Frontend/src/Components/Main/App.jsx - Home discovery
Frontend/src/Components/Home/Home.jsx - Menu browsing
Frontend/src/Components/Menu/Menu.jsx - Navigation and sign-in
Frontend/src/Components/Navbar/Navbar.jsx - Cart and checkout
Frontend/src/Components/Cart/Cart.jsx - Cart count state
Frontend/src/Components/Redux/Slice/CartSlice.js - Payment confirmation
Frontend/src/Components/PaymentSuccess/PaymentSuccess.jsx - AI chatbot
Frontend/src/Components/ChatBot/Chatbot.jsx - About and team
Frontend/src/Components/AboutMe/About.jsx - Contact and FAQ
Frontend/src/Components/ContactUs/ContactUs.jsx
Restaurant management
- Admin dashboard
Frontend/src/Components/Admin/Admin.jsx - Restaurant registration
Frontend/src/Components/Admin/Restaurant/Register_Restaurant.jsx - Menu management
Frontend/src/Components/Admin/Restaurant/Menu.jsx
API and persistence
- Express server
Backend/backend.js - Restaurant API
Backend/routes/restaurant.js - Menu API
Backend/routes/menu.js - Cart API
Backend/routes/cart.js - User API
Backend/routes/user.js - Dashboard API
Backend/routes/dashboard.js - Restaurant records
Backend/Models/Restaurant.js - Menu records
Backend/Models/Menu.js - Cart records
Backend/Models/Cart.js - User and order history
Backend/Models/User.js
External services
- Clerk identity
- Gemini API
- Razorpay
- Cloudinary media
- Gmail delivery
- MongoDB
Other components
- Visitor
Connections 40
- Visitor → Route entry: opens
Frontend/src/Components/Main/App.jsx - Route entry → Home discovery: routes to
Frontend/src/Components/Main/App.jsx - Route entry → Menu browsing: routes to
Frontend/src/Components/Main/App.jsx - Route entry → Cart and checkout: routes to
Frontend/src/Components/Main/App.jsx - Route entry → Admin dashboard: routes to
Frontend/src/Components/Main/App.jsx - Route entry → Restaurant registration: routes to
Frontend/src/Components/Main/App.jsx - Route entry → Menu management: routes to
Frontend/src/Components/Main/App.jsx - Route entry → About and team: routes to
Frontend/src/Components/Main/App.jsx - Route entry → Contact and FAQ: routes to
Frontend/src/Components/Main/App.jsx - Home discovery → AI chatbot: renders
Frontend/src/Components/Home/Home.jsx - Menu browsing → AI chatbot: renders
Frontend/src/Components/Menu/Menu.jsx - Menu browsing → Restaurant API: fetches restaurants
Frontend/src/Components/Menu/Menu.jsx - Menu browsing → Menu API: fetches dishes
Frontend/src/Components/Menu/Menu.jsx - Menu browsing → Cart API: adds items
Frontend/src/Components/Menu/Menu.jsx - Menu browsing → Cart count state: updates count
Frontend/src/Components/Menu/Menu.jsx - Navigation and sign-in → Cart count state: updates count
Frontend/src/Components/Navbar/Navbar.jsx - Cart and checkout → Cart count state: uses state
Frontend/src/Components/Cart/Cart.jsx - Cart and checkout → Payment confirmation: renders confirmation
Frontend/src/Components/Cart/Cart.jsx - Cart and checkout → Razorpay: processes checkout
README.md - Express server → Restaurant API: mounts routes
Backend/backend.js - Express server → Menu API: mounts routes
Backend/backend.js - Express server → Cart API: mounts routes
Backend/backend.js - Express server → User API: mounts routes
Backend/backend.js - Express server → Dashboard API: mounts routes
Backend/backend.js - Restaurant API → Restaurant records: reads and writes
Backend/routes/restaurant.js - Menu API → Menu records: reads and writes
Backend/routes/menu.js - Menu API → Restaurant records: updates restaurant
Backend/routes/menu.js - Cart API → Cart records: reads and writes
Backend/routes/cart.js - User API → User and order history: reads and writes
Backend/routes/user.js - Dashboard API → User and order history: reads
Backend/routes/dashboard.js - Express server → Razorpay: creates payment orders
Backend/backend.js - Express server → User and order history: saves order history
Backend/backend.js - Express server → Cart records: reads cart
Backend/backend.js - Express server → Gmail delivery: sends email
Backend/backend.js - Restaurant API → Cloudinary media: uploads images
Backend/routes/restaurant.js - Menu API → Cloudinary media: uploads images
Backend/routes/menu.js - Express server → MongoDB: connects
Backend/backend.js - AI chatbot → Gemini API: sends prompts
Frontend/src/Components/ChatBot/Chatbot.jsx - Navigation and sign-in → Clerk identity: uses sign-in
Frontend/src/Components/Navbar/Navbar.jsx - Route entry → Clerk identity: provides identity