How org-nexus-projects/ufabc-next-server works
ufabc-next-server is the Node.js backend for UFABC Next. Its API covers academic records and enrollment synchronization, comments and reviews, user and teacher services, and statistics; background processors handle enrollment updates and confirmation emails. The visible runtime entry point bootstraps ordered setup steps before serving requests. Sampled route files show registrations to handlers, but most handler internals and data-layer calls were not inspected, so those connections are omitted. The README identifies the product but documents few domain details.
Main entry points: server.js Server entry · app.js Bootstrap loader · status/route.js Status route · teachers/route.js Course teachers route
Components 22
Runtime setup
- Server entry
app/server.js - Bootstrap loader
app/app.js - API routes
app/setup/api.js - Status route
app/api/status/route.js - Status handler
app/api/status/func.js
Academic services
- Course teachers route
app/api/disciplinas/teachers/route.js - Course teachers handler
app/api/disciplinas/teachers/func.js - History sync route
app/api/histories/route.js - History sync handler
app/api/histories/func.js - Enrollment services
app/api/enrollments - Matricula sync
app/api/matriculas/sync/func.js - Course statistics
app/api/stats/disciplinas/func.js
Community services
- Subject reviews route
app/api/reviews/subjects/route.js - Subject reviews handler
app/api/reviews/subjects/func.js - Teacher reviews route
app/api/reviews/teachers/route.js - Teacher reviews handler
app/api/reviews/teachers/func.js - Comment services
app/api/comment - Facebook sync
app/api/facebook/func.js
Background processing
- Enrollment processors
app/agenda/processors/enrollments/updateEnrollments.js - User enrollment updates
app/agenda/processors/enrollments/updateUserEnrollments.js - Confirmation email job
app/agenda/processors/emails/sendConfirmation.js
Other components
- Service operator
Connections 8
- Service operator → Server entry: starts
- Server entry → Bootstrap loader: bootstraps
app/server.js - Bootstrap loader → API routes: loads setup
app/app.js - Status route → Status handler: registers
app/api/status/route.js - Course teachers route → Course teachers handler: registers
app/api/disciplinas/teachers/route.js - History sync route → History sync handler: registers
app/api/histories/route.js - Subject reviews route → Subject reviews handler: registers
app/api/reviews/subjects/route.js - Teacher reviews route → Teacher reviews handler: registers
app/api/reviews/teachers/route.js