How jcgante25-maker/dgdlfc-report works
This is a bullying-incident reporting and assessment web application. Reporters submit named or anonymous reports, optionally attach evidence, receive a tracking token, and can check status; administrators log in to review cases, update status and notes, delete records, and view summary and category analytics. The graph covers the sampled route/controller flow and documented route behavior. The README is empty, and unsampled view behavior and ancillary middleware are not inferred.
Main entry points: admin.js Admin routes · reports.js Public routes · db.js SQLite setup · server.js Express server
Components 18
Public reporting
- Public pages
views/public - Public routes
routes/reports.js - Report intake and tracking
controllers/reportController.js - Uploaded evidence
public/uploads - Status tracking
controllers/reportController.js
Administration
- Admin routes
routes/admin.js - Admin authentication
controllers/authController.js - Session guard
middleware/auth.js - Case management
controllers/adminController.js - Admin pages
views/admin - Category analytics
routes/admin.js
Application runtime
- Express server
server.js
Persistence and email
- SQLite setup
config/db.js - SQLite database
database.db - Confirmation email
services/mailService.js
Other components
- Reporter
- Administrator
- Gmail SMTP
Connections 19
- Reporter → Public pages: uses
- Public pages → Public routes: submits requests
routes/reports.js - Express server → Public routes: mounts
server.js - Public routes → Report intake and tracking: dispatches
routes/reports.js - Public routes → Uploaded evidence: stores attachments
routes/reports.js - Report intake and tracking → SQLite setup: writes and reads
controllers/reportController.js - SQLite setup → SQLite database: opens and initializes
config/db.js - Report intake and tracking → Confirmation email: sends confirmation
controllers/reportController.js - Confirmation email → Gmail SMTP: sends email
services/mailService.js - Reporter → Status tracking: checks status
- Express server → Status tracking: routes tracking API
server.js - Administrator → Admin pages: uses
- Express server → Admin routes: mounts
server.js - Admin routes → Admin authentication: dispatches login
routes/admin.js - Admin authentication → SQLite setup: checks credentials
controllers/authController.js - Admin routes → Session guard: guards endpoints
routes/admin.js - Admin routes → Case management: dispatches case actions
routes/admin.js - Case management → SQLite setup: reads and updates
controllers/adminController.js - Admin routes → Category analytics: queries categories
routes/admin.js