How vijiyaragavan26/meat-corner works
MEAT CORNER is a chicken-focused e-commerce and hyperlocal delivery platform with customer, admin, and delivery-partner portals. Customers browse and customize chicken products, manage a cart, check out with Razorpay or cash on delivery, and track orders; admins manage orders, inventory, partners, and store operations; delivery partners update order status and GPS location. The frontend API client and Express routes connect portal features to backend controllers and shared persistence. Some capabilities are documented but their implementation files were not sampled, so those subsystem links are shown only where documented.
Main entry points: App.tsx Portal router · api.ts API client · dataStore.ts Shared data store · server.ts Express API
Components 24
Customer shopping
- Portal router
frontend/src/App.tsx - Chicken catalog
frontend/src/pages/customer/ChickenCutsPage.tsx - Cart state
frontend/src/contexts/CartContext.tsx - Checkout and tracking
frontend/src/pages/customer/CheckoutPage.tsx - Customer account
frontend/src/pages/customer/AccountPage.tsx - Authentication state
frontend/src/contexts/AuthContext.tsx - API client
frontend/src/services/api.ts
API and persistence
- Express API
backend/src/server.ts - JWT and roles
backend/src/middleware/auth.ts - Order lifecycle
backend/src/controllers/orderController.ts - Payment handling
backend/src/controllers/paymentController.ts - Product catalog API
backend/src/controllers/productController.ts - Cart API
backend/src/controllers/cartController.ts - Shared data store
backend/src/db/dataStore.ts
Admin operations
- Admin management
frontend/src/pages/admin - Admin API routes
backend/src/routes/adminRoutes.ts - Admin operations API
backend/src/controllers/adminController.ts
Delivery operations
- Rider dashboard
frontend/src/pages/delivery/DeliveryDashboard.tsx - Delivery operations API
backend/src/controllers/deliveryController.ts
External services
- Supabase
- Razorpay
Other components
- Customer
- Administrator
- Delivery partner
Connections 23
- Customer → Portal router: shops through
README.md - Administrator → Admin management: manages through
README.md - Delivery partner → Rider dashboard: delivers through
README.md - Portal router → Chicken catalog: routes to
frontend/src/App.tsx - Portal router → Checkout and tracking: routes to
frontend/src/App.tsx - Portal router → Customer account: routes to
frontend/src/App.tsx - Portal router → Authentication state: uses
frontend/src/App.tsx - Cart state → API client: calls
frontend/src/contexts/CartContext.tsx - Authentication state → API client: calls
frontend/src/contexts/AuthContext.tsx - API client → Express API: calls API
README.md - Express API → Admin API routes: mounts routes
backend/src/server.ts - Express API → Order lifecycle: mounts order routes
backend/src/server.ts - Express API → Payment handling: mounts payment handler
backend/src/server.ts - Admin API routes → Admin operations API: dispatches to
backend/src/routes/adminRoutes.ts - Order lifecycle → Shared data store: reads and writes
backend/src/controllers/orderController.ts - JWT and roles → Shared data store: looks up users
backend/src/middleware/auth.ts - Admin management → API client: uses API
README.md - Admin operations API → Shared data store: uses data
backend/src/controllers/adminController.ts - Rider dashboard → API client: uses API
frontend/src/pages/delivery/DeliveryDashboard.tsx - Delivery operations API → Shared data store: updates data
backend/src/controllers/deliveryController.ts - Delivery operations API → Rider dashboard: returns operations data
- Shared data store → Supabase: integrates with
README.md - Payment handling → Razorpay: processes payments
README.md