How sandeepreddy2147/tvarit works
TRAVIT is a role-based ingredient-kit shopping and delivery application. Customers browse products or recipes, add items to a cart, check out, and follow order progress; admins manage catalog and operations, while delivery partners handle assigned orders. Firebase provides authentication and persistent application data. The README documents AI assistance, payment, recipe, and map capabilities; some of those implementations were not sampled, so their wiring is shown only where the documentation supports it.
Main entry points: App.jsx Route and Role Router · db.js Firestore Operations · useCart.js Cart State · Checkout.jsx Checkout
Components 24
Customer Experience
- Product Catalog
src/pages/ProductListing/ProductListing.jsx - Customer Home
src/pages/HomeDashboard/HomeDashboard.jsx - Recipe Browser
src/pages/Recipes/RecipeListing.jsx - Recipe Details
src/pages/Recipes/RecipeDetail.jsx - AI Assistant
src/components/AIChatbot/AIChatbot.jsx - NVIDIA AI
Shopping and Orders
- Cart Review
src/pages/Cart/Cart.jsx - Cart State
src/hooks/useCart.js - Wishlist
src/pages/Wishlist/Wishlist.jsx - Checkout
src/pages/Checkout/Checkout.jsx - Order History
src/pages/Orders/Orders.jsx - Order Tracking
src/pages/OrderTracking/OrderTracking.jsx - Razorpay
Platform Operations
- Admin Console
src/pages/AdminDashboard/AdminDashboard.jsx - Delivery Dashboard
src/pages/DeliveryDashboard/DeliveryDashboard.jsx - Location Updates
src/services/logistics.js - Map Service
Application Platform
- Route and Role Router
src/App.jsx - Authentication State
src/hooks/useAuth.js - Firebase Services
src/firebase/config.js - Firestore
- Firestore Operations
src/services/db.js
Other components
- Customer
- Delivery Partner
Connections 33
- Customer → Route and Role Router: opens app
- Delivery Partner → Route and Role Router: opens app
- Route and Role Router → Authentication State: checks identity
- Authentication State → Firebase Services: uses auth
- Firebase Services → Firestore: connects
- Route and Role Router → Customer Home: routes customer
- Route and Role Router → Product Catalog: routes browsing
- Route and Role Router → Recipe Browser: routes recipes
- Route and Role Router → Recipe Details: routes details
- Route and Role Router → Cart Review: routes cart
- Route and Role Router → Checkout: routes checkout
- Route and Role Router → Order History: routes history
- Route and Role Router → Order Tracking: routes tracking
- Route and Role Router → Wishlist: routes wishlist
- Route and Role Router → Admin Console: routes admin
- Route and Role Router → Delivery Dashboard: routes delivery
- Route and Role Router → AI Assistant: renders assistant
- Product Catalog → Cart State: adds items
- Customer Home → Cart State: adds items
- Recipe Details → Cart State: adds kit
- Cart Review → Cart State: updates cart
- Cart State → Firestore Operations: reads and writes cart
- Wishlist → Firestore Operations: manages saved items
- Checkout → Firestore Operations: checks and places order
- Checkout → Razorpay: requests payment
- Firestore Operations → Firestore: reads and writes records
- Firestore Operations → Order History: streams order history
- Firestore Operations → Order Tracking: provides order status
- Admin Console → Firestore Operations: manages catalog and records
- Delivery Dashboard → Firestore Operations: reads delivery orders
- Delivery Dashboard → Location Updates: sends location
- Location Updates → Map Service: updates map
- AI Assistant → NVIDIA AI: requests AI responses