How fdenepal/fde works
Forum for Digital Equality is an Express/EJS public website with a MongoDB-backed CMS. Visitors browse organization pages, projects, research and stories, and can submit contact messages or subscribe; administrators sign in to edit pages and settings, manage content, review submissions, and upload media. The graph shows the route handlers as workflow owners, with model groups representing persistence. Source excerpts support the main route, bootstrap, and media relationships; unsampled templates and some model internals are represented at their documented paths.
Main entry points: admin.js Admin routes · server.js Express server · public.js Public routes · bootstrap.js Initial setup
Components 17
Application runtime
- Express server
server.js - Initial setup
lib/bootstrap.js - Admin auth
middleware/auth.js - Media uploads
lib/cloudinary.js
Public website
- Public routes
routes/public.js - Public pages
views/pages
Content management
- Admin routes
routes/admin.js - Admin screens
views/admin - Page field specs
lib/pageFields.js
Domain data
- Pages and settings
models - Admin users
models/User.js - Editorial content
models - Contact and subscribers
models
Other components
- Visitor
- Administrator
- MongoDB
- Cloudinary
Connections 25
- Visitor → Express server: requests pages
server.js - Administrator → Express server: requests admin
server.js - Express server → Initial setup: initializes data
server.js - Express server → Public routes: mounts routes
server.js - Express server → Admin routes: mounts routes
server.js - Express server → Pages and settings: loads settings
server.js - Express server → MongoDB: connects
server.js - Express server → Media uploads: configures uploads
server.js - Initial setup → Admin users: creates admin
lib/bootstrap.js - Initial setup → Pages and settings: ensures records
lib/bootstrap.js - Initial setup → Page field specs: reads page specs
lib/bootstrap.js - Public routes → Public pages: renders pages
routes/public.js - Public routes → Pages and settings: reads page content
routes/public.js - Public routes → Editorial content: reads content
routes/public.js - Public routes → Contact and subscribers: saves submissions
routes/public.js - Admin routes → Admin auth: checks access
routes/admin.js - Admin routes → Admin screens: renders screens
routes/admin.js - Admin routes → Admin users: checks credentials
routes/admin.js - Admin routes → Pages and settings: edits pages and settings
routes/admin.js - Admin routes → Editorial content: manages content
routes/admin.js - Admin routes → Contact and subscribers: reviews submissions
routes/admin.js - Admin routes → Page field specs: uses page specs
routes/admin.js - Admin routes → Media uploads: uploads media
routes/admin.js - Media uploads → Cloudinary: uploads remotely
lib/cloudinary.js - Media uploads → Express server: stores local fallback
lib/cloudinary.js