How sweezalsuares/quadrangle-campus-venue-revenue-platform works
Quadrangle is a campus venue marketplace for clubs and external clients, with manager/admin workflows for approvals, pricing, revenue, and system oversight. Users browse venues, request a time slot, receive a demand-adjusted quote, and proceed through conflict checks, approval, notifications, and payment; managers also manage venues and review analytics. The graph combines sampled client/API flow with README-documented capabilities. Some analytics and view internals were not excerpted, so their detailed call relationships are omitted.
Main entry points: routes REST routes · api.js API client · models Domain models · main.js Web application
Components 25
User experience
- Web application
client/js/main.js - Role navigation
client/js/router.js - Session state
client/js/state.js - API client
client/js/api.js - Venue browsing
client/js/views/venues.js - Booking screens
client/js/views/bookings.js - Booking calendar
client/js/views/calendar.js - Venue assistant
client/js/views/assistant.js - Dashboards
client/js/views/dashboard.js - Revenue charts
client/js/views/revenue.js - Chart rendering
client/js/chart.js
API and access
- REST routes
server/src/routes - JWT and roles
server/src/middleware/auth.js - Account access
server/src/controllers/auth.controller.js
Booking and pricing
- Booking workflow
server/src/controllers/booking.controller.js - Pricing intelligence
server/src/services/pricing.service.js - Payment QR
server/src/services/qrcode.service.js
Campus operations
- Venue management
server/src/controllers/venue.controller.js - Notifications
server/src/controllers/notification.controller.js - Analytics
server/src/controllers/analytics.controller.js - Pricing rules
server/src/controllers/pricingRule.controller.js - User administration
server/src/controllers/user.controller.js
Domain data
- Domain models
server/src/models - MongoDB
server/src/config/db.js
Other components
- Campus user
Connections 32
- Campus user → Web application: uses
README.md - Web application → Role navigation: renders views
client/js/main.js - Role navigation → Session state: reads role
client/js/router.js - Web application → Session state: loads session
client/js/main.js - Venue browsing → API client: requests venue data
client/js/views/venues.js - Booking screens → API client: requests bookings
client/js/views/bookings.js - Booking calendar → API client: requests calendar
client/js/views/calendar.js - Venue assistant → API client: requests suggestions
client/js/views/assistant.js - Dashboards → API client: requests dashboard data
client/js/views/dashboard.js - Revenue charts → API client: requests analytics
client/js/views/revenue.js - Revenue charts → Chart rendering: renders charts
client/js/views/revenue.js - Dashboards → Chart rendering: renders charts
client/js/views/dashboard.js - API client → REST routes: calls REST API
README.md - REST routes → JWT and roles: protects routes
server/src/routes/booking.routes.js - REST routes → Booking workflow: dispatches bookings
server/src/routes/booking.routes.js - REST routes → Venue management: dispatches venues
server/src/routes/venue.routes.js - REST routes → Account access: dispatches accounts
server/src/routes/auth.routes.js - JWT and roles → Domain models: loads user
server/src/middleware/auth.js - Booking workflow → Pricing intelligence: checks conflicts and prices
server/src/controllers/booking.controller.js - Booking workflow → Payment QR: builds payment QR
server/src/controllers/booking.controller.js - Booking workflow → Domain models: reads and writes records
server/src/controllers/booking.controller.js - Venue management → Domain models: manages venues
server/src/controllers/venue.controller.js - Account access → Domain models: creates and checks accounts
server/src/controllers/auth.controller.js - REST routes → Notifications: dispatches notifications
server/src/routes/notification.routes.js - REST routes → Analytics: dispatches analytics
- REST routes → Pricing rules: dispatches pricing rules
server/src/routes/pricingRule.routes.js - REST routes → User administration: dispatches user administration
server/src/routes/user.routes.js - Notifications → Domain models: reads notifications
server/src/controllers/notification.controller.js - Pricing rules → Domain models: reads and writes rules
server/src/controllers/pricingRule.controller.js - User administration → Domain models: reads users and bookings
server/src/controllers/user.controller.js - Web application → API client: verifies session
client/js/main.js - MongoDB → Domain models: backs persistent records