How vector1703/innovexa_project_1 works
Innovexa is a women’s fashion storefront backed by an Express API and MongoDB. The principal customer flow is browsing the catalog, managing a cart, checking out into an order, and optionally completing payment through Stripe or the mock flow. Authentication protects customer and administrative operations; catalog, cart, order, and user data are represented by Mongoose models. The graph includes documented capabilities even where their implementation was not sampled. Relationship evidence is limited to excerpts, SOURCE INDEX references, and README statements; unverified client-to-API wiring is not asserted.
Main entry points: index.js API router · authMiddleware.js JWT authorization · server.js Express server · orderController.js Checkout and orders
Components 26
Storefront
- Storefront UI
frontend/index.html - API client
frontend/js/api.js
API and access
- Express server
backend/server.js - API router
backend/routes/index.js - Authentication routes
backend/routes/authRoutes.js - JWT authorization
backend/middleware/authMiddleware.js - Error handling
backend/middleware/errorMiddleware.js - Catalog routes
backend/routes/productRoutes.js - Cart routes
backend/routes/cartRoutes.js - Order routes
backend/routes/orderRoutes.js - Payment routes
backend/routes/paymentRoutes.js
Commerce operations
- Account management
backend/controllers/authController.js - Token generation
backend/utils/generateToken.js - Catalog management
backend/controllers/productController.js - Demo catalog seeding
backend/scripts/seed.js - Cart operations
backend/controllers/cartController.js - Checkout and orders
backend/controllers/orderController.js - Payment processing
backend/controllers/paymentController.js
Persistence
- User records
backend/models/User.model.js - Product records
backend/models/Product.model.js - Cart records
backend/models/Cart.model.js - Order records
backend/models/Order.model.js - Database connection
backend/config/db.js
Other components
- Shopper
- Stripe
- MongoDB
Connections 34
- Shopper → Storefront UI: uses
README.md - Storefront UI → Express server: served by
backend/server.js - API client → Express server: API requests
- Express server → API router: mounts API
backend/server.js - Express server → Database connection: connects through
backend/server.js - Express server → Error handling: handles errors
backend/server.js - API router → Authentication routes: registers
backend/routes/index.js - API router → Catalog routes: registers
backend/routes/index.js - API router → Cart routes: registers
backend/routes/index.js - API router → Order routes: registers
backend/routes/index.js - API router → Payment routes: registers
backend/routes/index.js - Authentication routes → Account management: dispatches
backend/routes/authRoutes.js - Authentication routes → JWT authorization: protects
backend/routes/authRoutes.js - Account management → User records: reads and writes
backend/controllers/authController.js - Account management → Token generation: generates token
backend/controllers/authController.js - JWT authorization → User records: loads user
backend/middleware/authMiddleware.js - Catalog routes → Catalog management: dispatches
backend/routes/productRoutes.js - Catalog routes → JWT authorization: protects admin
backend/routes/productRoutes.js - Catalog management → Product records: queries and updates
backend/controllers/productController.js - Demo catalog seeding → Product records: seeds records
backend/scripts/seed.js - Cart routes → Cart operations: dispatches
backend/routes/cartRoutes.js - Cart routes → JWT authorization: requires login
backend/routes/cartRoutes.js - Cart operations → Cart records: reads and writes
backend/controllers/cartController.js - Cart operations → Product records: checks stock
backend/controllers/cartController.js - Order routes → Checkout and orders: dispatches
backend/routes/orderRoutes.js - Order routes → JWT authorization: requires login
backend/routes/orderRoutes.js - Checkout and orders → Cart records: reads and clears
backend/controllers/orderController.js - Checkout and orders → Product records: checks and deducts stock
backend/controllers/orderController.js - Checkout and orders → Order records: creates and updates
backend/controllers/orderController.js - Payment routes → Payment processing: dispatches
backend/routes/paymentRoutes.js - Payment routes → JWT authorization: requires login
backend/routes/paymentRoutes.js - Payment processing → Order records: updates payment
backend/controllers/paymentController.js - Payment processing → Stripe: charges optionally
backend/controllers/paymentController.js - Database connection → MongoDB: connects
README.md