How mdsreq-fga-unb/req-2026.2-t01-sigcecp works
SigCECP is a FastAPI portal for publishing public content and events while giving coordinators authenticated tools to manage publications, events, and student classes. Public visitors browse content and event listings/details; coordinators sign in, then use protected management routes. The backend separates route handling from domain services, with SQLAlchemy persistence and uploaded media. README and sampled sources establish the main route/service/storage relationships; some class-association behavior and template interactions are only partially sampled.
Main entry points: main.py FastAPI app · publicacoes/services.py Publication service · eventos/services.py Event service · router.py Login routes
Components 20
Application
- FastAPI app
backend/main.py
Admin identity
- Login routes
backend/auth/router.py - Admin guard
backend/auth/dependencies.py - Session middleware
backend/auth/middleware.py - Session service
backend/auth/services.py - Token security
backend/auth/security.py
Portal domains
- Publication routes
backend/publicacoes/router.py - Publication service
backend/publicacoes/services.py - Publication media
backend/publicacoes/media.py - Event routes
backend/eventos/router.py - Event service
backend/eventos/services.py - Event media
backend/eventos/media.py - Class routes
backend/turmas/router.py - Class service
backend/turmas/services.py
Data and presentation
- SQLAlchemy database
backend/database.py - Domain models
backend - HTML templates
frontend - Template config
backend/config.py
Other components
- Public visitor
- Coordinator
Connections 31
- Public visitor → FastAPI app: browses
backend/main.py - Coordinator → Login routes: signs in
backend/auth/router.py - Coordinator → Publication routes: manages
backend/publicacoes/router.py - Coordinator → Event routes: manages
backend/eventos/router.py - Coordinator → Class routes: manages
backend/turmas/router.py - FastAPI app → Login routes: registers routes
backend/main.py - FastAPI app → Publication routes: registers routes
backend/main.py - FastAPI app → Event routes: registers routes
backend/main.py - FastAPI app → Class routes: registers routes
backend/main.py - FastAPI app → Session middleware: installs
backend/main.py - FastAPI app → Publication service: queries
backend/main.py - FastAPI app → Event service: queries
backend/main.py - Login routes → Session service: authenticates sessions
backend/auth/router.py - Session service → Token security: uses token functions
backend/auth/services.py - Admin guard → Token security: decodes token
backend/auth/dependencies.py - Admin guard → Session service: validates session
backend/auth/dependencies.py - Login routes → HTML templates: renders pages
backend/auth/router.py - Publication routes → Publication service: delegates operations
backend/publicacoes/router.py - Event routes → Event service: delegates operations
backend/eventos/router.py - Class routes → Class service: delegates operations
backend/turmas/router.py - Publication service → Publication media: saves media
backend/publicacoes/services.py - Event service → Event media: saves media
backend/eventos/services.py - Publication service → SQLAlchemy database: reads and writes
backend/publicacoes/services.py - Event service → SQLAlchemy database: reads and writes
backend/eventos/services.py - Class service → SQLAlchemy database: reads and writes
backend/turmas/services.py - FastAPI app → HTML templates: renders public pages
backend/main.py - FastAPI app → Template config: uses template configuration
backend/main.py - Template config → HTML templates: configures templates
backend/config.py - Publication service → Domain models: uses publication models
backend/publicacoes/services.py - Event service → Domain models: uses event models
backend/eventos/services.py - Class service → Domain models: uses class models
backend/turmas/services.py