How shreyas-sv1/vendor_app works
Vendor App is a mobile-first vendor management PWA backed by an Express API. Vendors use the frontend to register or sign in, configure their profile and location, manage orders, view earnings and order analytics, and access settings and support. The API handles authentication and password recovery, order operations, and dashboard data through route, controller, and service layers. The README documents maps, cart photo uploads, and notifications, but their implementation wiring is not shown in the sampled source; those capabilities are represented without speculative API connections.
Main entry points: app.js Express API · App.jsx React app · database.js Prisma data access · server.js HTTP server
Components 23
Vendor PWA
- React app
frontend/src/App.jsx - Account access
frontend/src/pages - Vendor setup
frontend/src/pages - Dashboard view
frontend/src/pages/Dashboard.jsx - Order management
frontend/src/pages/Orders.jsx - Cart photos
frontend/src/pages/UploadCart.jsx - Profile & support
frontend/src/pages
Authentication API
- Auth routes
backend/src/routes/auth.routes.js - Auth handlers
backend/src/controllers/authController.js - Auth services
backend/src/services/authService.js
Orders & Analytics API
- Order routes
backend/src/routes/orders.routes.js - Order handlers
backend/src/controllers/orderController.js - Order services
backend/src/services/orderService.js - Dashboard routes
backend/src/routes/dashboard.routes.js - Dashboard handlers
backend/src/controllers/dashboardController.js - Dashboard services
backend/src/services/dashboardService.js
API Runtime & State
- Express API
backend/src/app.js - HTTP server
backend/src/server.js - Request middleware
backend/src/middleware - Prisma data access
backend/src/config/database.js - SQLite database
backend/prisma/schema.prisma - Redis
backend/src/config/redis.js
Other components
- Vendor
Connections 27
- Vendor → React app: uses
- React app → Account access: routes to
- React app → Vendor setup: routes to
- React app → Dashboard view: routes to
- React app → Order management: routes to
- React app → Cart photos: routes to
- React app → Profile & support: routes to
- Account access → Express API: API requests
- Order management → Express API: API requests
- Dashboard view → Express API: API requests
- Express API → Auth routes: mounts
- Express API → Order routes: mounts
- Express API → Dashboard routes: mounts
- Express API → Request middleware: applies
- Auth routes → Auth handlers: dispatches
- Auth handlers → Auth services: calls
- Order routes → Order handlers: dispatches
- Order handlers → Order services: calls
- Dashboard routes → Dashboard handlers: dispatches
- Dashboard handlers → Dashboard services: calls
- Auth services → Prisma data access: reads/writes
- Order services → Prisma data access: reads/writes
- Dashboard services → Prisma data access: reads
- Prisma data access → SQLite database: queries
- HTTP server → Express API: serves
- HTTP server → Prisma data access: connects
- HTTP server → Redis: pings