How rajbhokare/e-commerce-group-project works
This is a small Express-based RiskMonitor dashboard project presented as an e-commerce group project. The main workflow is an administrator submitting login credentials, receiving a session on success, and viewing a session-protected dashboard populated with hardcoded sample metrics and alerts. The app configures sessions and serves the EJS interface and static assets; separate route modules dispatch login and dashboard requests to their controllers. The README documents no further capabilities, and the UI templates and styles were not sampled, so their detailed behavior is uncertain.
Main entry points: app.js Express app · auth.js Auth routes · authController.js Auth controller · dashboard.js Dashboard route
Components 11
Web server
- Express app
app.js - Session middleware
app.js
Authentication
- Auth routes
routes/auth.js - Auth controller
controller/authController.js - Login view
views/index.ejs
Dashboard UI
- Dashboard route
routes/dashboard.js - Dashboard controller
controller/dashboardcontroller.js - Dashboard view
views/dashboard.ejs - Browser interactions
public/js/main.js - Dashboard styles
public/css/style.css
Other components
- Administrator
Connections 9
- Express app → Auth routes: mounts routes
app.js - Express app → Dashboard route: mounts routes
app.js - Express app → Session middleware: configures
app.js - Express app → Browser interactions: serves static
app.js - Express app → Dashboard styles: serves static
app.js - Auth routes → Auth controller: dispatches to
routes/auth.js - Auth controller → Login view: renders
controller/authController.js - Dashboard route → Dashboard controller: dispatches to
routes/dashboard.js - Dashboard controller → Dashboard view: renders
controller/dashboardcontroller.js