How anshurathee05/bml-university-clubs works
BML University Clubs Management System supports public club and event discovery, student registration/login and profiles, plus administrative management of clubs, events and students. Requests enter through the Express server, which dispatches page/auth/admin routes and exposes club/event APIs; browser-side code builds club and event views. MongoDB models hold the domain records, and sessions are configured with Mongo-backed storage. The sampled browser excerpt shows event data loading from a public JSON file; its club-loading implementation and template-to-script wiring are not shown, so those links are omitted.
Main entry points: server.js Express server · admin.js Admin routes · index.js Public pages · app.js Event browser
Components 14
Web entry
- Express server
server.js - Public pages
routes/index.js
Browsing UI
- Club interface
public/js/app.js - Event browser
public/js/app.js - Club data file
public/data/clubs-data.json - Page templates
views
Student identity
- Account routes
routes/auth.js - Auth middleware
middleware/auth.js
Administration and data
- Student records
models/Student.js - Admin routes
routes/admin.js - Club records
models/Club.js - Event records
models/Event.js
Other components
- Visitor / student
- MongoDB
Connections 14
- Visitor / student → Express server: sends requests
server.js - Express server → Public pages: mounts routes
server.js - Express server → Account routes: mounts routes
server.js - Express server → Admin routes: mounts routes
server.js - Public pages → Page templates: renders pages
routes/index.js - Account routes → Student records: reads and saves
routes/auth.js - Admin routes → Club records: queries and deletes
routes/admin.js - Admin routes → Event records: queries and deletes
routes/admin.js - Admin routes → Student records: queries
routes/admin.js - Express server → Club records: serves club API
server.js - Express server → Event records: serves event API
server.js - Event browser → Club data file: loads event data
public/js/app.js - Club interface → Event browser: initializes
public/js/app.js - Express server → MongoDB: connects and stores sessions
server.js