How arunkumar06072002/inyra works
Inyra is a two-sided e-commerce application: customers browse products, manage a cart, and place and track orders; owners manage catalog, storefront settings, orders, and audit exports. Angular pages and services call an Express API whose route handlers enforce role checks and operate on MongoDB-backed models. The README also documents ads, image management, and Excel audit downloads; these are retained as product capabilities, though their internal implementation paths are not fully evidenced here. Arrows cite only shown routing, calls, or README statements; unverified links are omitted.
Main entry points: app.routes.ts Route dispatch · server.js API application · product.routes.js Catalog endpoints · order.routes.js Order endpoints
Components 27
Customer storefront
- Browse and order
client/src/app/customer/pages - Customer account
client/src/app/customer/pages/login/login.ts
Owner console
- Manage store
client/src/app/owner/pages - Storefront settings
client/src/app/owner/pages/storefront/storefront.ts - Audit and export
client/src/app/owner/pages/audit/audit.ts
Angular shared layer
- Route dispatch
client/src/app/app.routes.ts - Session and auth
client/src/app/core/services/auth.service.ts - JWT interceptor
client/src/app/core/interceptors/jwt.interceptor.ts - Catalog, cart, orders
client/src/app/core/services - Settings and theme
client/src/app/core/services/settings.service.ts
Express API
- API application
server/server.js - Auth endpoints
server/src/routes/auth.routes.js - Catalog endpoints
server/src/routes/product.routes.js - Order endpoints
server/src/routes/order.routes.js - Order workflow
server/src/controllers/orderController.js - Product management
server/src/controllers/productController.js - Category management
server/src/controllers/categoryController.js - Identity logic
server/src/controllers/authController.js - Role authorization
server/src/middleware/auth.js - Audit and Excel API
server/src/routes/audit.routes.js - Settings and ads API
server/src/controllers/settingsController.js - Image endpoints
server/src/routes/image.routes.js
Persistence and media
- MongoDB records
server/src/config/db.js - Image storage
server/src/utils/imageStore.js
Other components
- Customer
- Store owner
- Payment gateway
Connections 28
- Customer → Route dispatch: opens storefront
client/src/app/app.routes.ts - Store owner → Route dispatch: opens owner panel
client/src/app/app.routes.ts - Route dispatch → Browse and order: routes to
client/src/app/app.routes.ts - Route dispatch → Customer account: routes to
client/src/app/app.routes.ts - Route dispatch → Manage store: routes to
client/src/app/app.routes.ts - Route dispatch → Storefront settings: routes to
client/src/app/app.routes.ts - Route dispatch → Audit and export: routes to
client/src/app/app.routes.ts - Customer account → Session and auth: uses
- Browse and order → Catalog, cart, orders: uses
- Manage store → Catalog, cart, orders: uses
client/src/app/owner/pages/storefront/storefront.ts - Storefront settings → Settings and theme: uses
client/src/app/owner/pages/storefront/storefront.ts - API application → Auth endpoints: mounts
server/server.js - API application → Catalog endpoints: mounts
server/server.js - API application → Order endpoints: mounts
server/server.js - API application → Audit and Excel API: mounts
server/server.js - API application → Settings and ads API: mounts
server/server.js - API application → Image endpoints: mounts
server/server.js - Auth endpoints → Identity logic: dispatches
server/src/routes/auth.routes.js - Catalog endpoints → Product management: dispatches
server/src/routes/product.routes.js - Order endpoints → Order workflow: dispatches
server/src/routes/order.routes.js - Order endpoints → Role authorization: checks roles
server/src/routes/order.routes.js - Catalog endpoints → Role authorization: checks roles
server/src/routes/product.routes.js - Identity logic → MongoDB records: reads and writes
server/src/controllers/authController.js - Order workflow → MongoDB records: reads and writes
server/src/controllers/orderController.js - Product management → MongoDB records: reads and writes
server/src/controllers/productController.js - Product management → Image storage: saves and deletes
server/src/controllers/productController.js - Audit and export → Audit and Excel API: requests export
- Payment gateway → Order workflow: payment processing