How vidhyashekar/-leavethemarks works
LeaveTheMarks is an Express/MongoDB story-publishing web application. Visitors browse a story feed and individual stories; registered users can authenticate, create stories, and comment. The graph follows HTTP routing into route handlers, then MongoDB-backed user/story operations and EJS responses. Source excerpts establish these runtime links; other view templates and client assets are present in the tree but their individual behavior was not inspected.
Main entry points: app.js Express application · views EJS pages · route.js Page handlers · user.js Account handlers
Components 12
Web runtime
- Express application
app.js - Page handlers
routes/route.js
Accounts
- Account handlers
routes/user.js - Credentials and sessions
routes/user.js
Story publishing
- Story handlers
routes/story.js - Publishing and comments
routes/story.js
Persistence
- User model
models/db.js - Story model
models/db.js
Presentation
- EJS pages
views - Browser assets
public
Other components
- Visitor
- MongoDB
Connections 15
- Visitor → Express application: sends requests
app.js - Express application → Page handlers: routes pages
app.js - Express application → Account handlers: routes accounts
app.js - Express application → Story handlers: routes stories
app.js - Page handlers → Story model: queries stories
routes/route.js - Page handlers → EJS pages: renders pages
routes/route.js - Account handlers → Credentials and sessions: handles credentials
routes/user.js - Credentials and sessions → User model: finds and saves
routes/user.js - Account handlers → EJS pages: renders account pages
routes/user.js - Story handlers → Publishing and comments: handles publishing
routes/story.js - Publishing and comments → Story model: queries and saves
routes/story.js - Story handlers → EJS pages: renders stories
routes/story.js - User model → MongoDB: persists users
- Story model → MongoDB: persists stories
- EJS pages → Browser assets: uses browser assets