How deejsxyz/cup-portal works
CUP Central Portal serves role-specific university portals and handles their application, account, registrar, faculty, and NSTP workflows. Users enter through the portal pages; the Node server serves those pages and provides API routes, with PostgreSQL as the documented shared database. The registrar and faculty excerpts show enrollment/advising and grade-management stages. Shared browser scripts support navigation, sessions, search, and printed grade documents. The server is very large and only excerpts were provided, so unshown route-to-page links and domain-specific API details are omitted rather than inferred.
Main entry points: server.js HTTP and API server · CUP-PORTAL Role portals · registrar Registrar portals · portal-session.js Session controls
Components 19
Portal experience
- Role portals
CUP-PORTAL - Student portal
CUP-PORTAL/student - Faculty portal
CUP-PORTAL/faculty - Registrar portals
CUP-PORTAL/registrar - College registrar
CUP-PORTAL/college-registrar - CSC portal
CUP-PORTAL/csc - Department head
CUP-PORTAL/department-head - Graduate studies
CUP-PORTAL/graduate-studies - NSTP portal
CUP-PORTAL/nstp - Staff portal
CUP-PORTAL/staff
Application services
- HTTP and API server
server.js - Case redirects
case-redirect.js
Academic records
- Shared PostgreSQL
schema.sql - Photo object storage
r2.js
Shared browser features
- Session controls
CUP-PORTAL/portal-session.js - Responsive navigation
CUP-PORTAL/portal-menu.js - Search input behavior
CUP-PORTAL/portal-search.js - Grade document builder
CUP-PORTAL/shared/copy-doc.js
Other components
- Portal users
Connections 22
- Portal users → Role portals: use portals
README.md - Role portals → HTTP and API server: request pages
- Student portal → HTTP and API server: request services
- Faculty portal → HTTP and API server: request services
- Registrar portals → HTTP and API server: request services
- College registrar → HTTP and API server: request services
- CSC portal → HTTP and API server: request services
- Department head → HTTP and API server: request services
- Graduate studies → HTTP and API server: request services
- NSTP portal → HTTP and API server: request services
- Staff portal → HTTP and API server: request services
- HTTP and API server → Role portals: serves static files
server.js - HTTP and API server → Shared PostgreSQL: queries records
server.js - HTTP and API server → Case redirects: registers middleware
server.js - HTTP and API server → Photo object storage: uses storage
server.js - Faculty portal → Session controls: uses session helper
- Registrar portals → Session controls: uses session helper
- NSTP portal → Session controls: uses session helper
- Role portals → Responsive navigation: uses navigation helper
- Role portals → Search input behavior: uses search helper
- Student portal → Grade document builder: builds grade copy
- Registrar portals → Grade document builder: builds grade document