How masonprice813/s26-cpsc4910-team19 works
This is a role-based points and rewards portal for drivers, sponsors, and administrators. Drivers browse and redeem catalog products, then review point history and orders; sponsors manage drivers, applications, points, catalog settings, and reports; administrators manage users and inspect reports and audit logs. The browser modules call a large Express API, which queries MySQL and uses a separate bulk-file parser. The README gives no product details, so capabilities here are inferred from the source filenames and excerpts; most server routes and several UI modules were not sampled.
Main entry points: server.js Express API · catalog.js Rewards catalog · profile.js Driver profile · transaction-history.js Order history
Components 17
Web experiences
- Rewards catalog
Website/catalog.js - Product details
Website/product.js - Driver profile
Website/profile.js - Order history
Website/transaction-history.js - Notifications
Website/notifications.js - Applications
Website/application.js - Sponsor dashboard
Website/sponsor-page.js - Sponsor applications
Website/sponsor-applications.js - Sponsor setup
Website/sponsor-create.js - Admin user management
Website/admin-users.js - Admin reports
Website/admin-reports.js - Audit logs
Website/audit-logs.js - Authentication UI
Website/login.js
Application services
- Express API
server.js
Persistence and imports
- Bulk import parser
Website/bulkParser.js - MySQL database
Other components
- Portal users
Connections 24
- Portal users → Rewards catalog: browse and redeem
Website/catalog.js - Portal users → Driver profile: manage profile
Website/profile.js - Portal users → Order history: review orders
Website/transaction-history.js - Portal users → Notifications: manage alerts
Website/notifications.js - Portal users → Applications: submit application
Website/application.js - Portal users → Sponsor dashboard: manage program
Website/sponsor-page.js - Portal users → Admin user management: manage users
Website/admin-users.js - Portal users → Admin reports: view reports
Website/admin-reports.js - Portal users → Audit logs: review audit logs
Website/audit-logs.js - Portal users → Authentication UI: sign in
- Rewards catalog → Express API: request catalog and checkout
Website/catalog.js - Product details → Express API: request product data
- Driver profile → Express API: read and update profile
Website/profile.js - Order history → Express API: request order history
Website/transaction-history.js - Notifications → Express API: manage notifications
Website/notifications.js - Applications → Express API: submit and configure
Website/application.js - Sponsor dashboard → Express API: manage sponsor data
Website/sponsor-page.js - Sponsor applications → Express API: manage applications
- Sponsor setup → Express API: configure sponsor
- Admin user management → Express API: manage users and bugs
Website/admin-users.js - Admin reports → Express API: request analytics
Website/admin-reports.js - Audit logs → Express API: request audit data
Website/audit-logs.js - Express API → MySQL database: query and update
server.js - Express API → Bulk import parser: uses parser
server.js