How santhoshrajkg/to-do-list works
This is a small Express to-do list. A user requests the default or work list; the app selects in-memory items, obtains the displayed date for the default list, and renders the shared EJS list view. Submitted items are added to the selected in-memory array, then the app redirects to that list. The source shows no persistent storage. The view templates beyond list.ejs and the stylesheet were not sampled, so they are omitted.
Main entry points: app.js Express app · date.js Date formatter · list.ejs List view
Components 5
Application runtime
- Express app
app.js - In-memory lists
app.js - Date formatter
date.js
Presentation
- List view
views/list.ejs
Other components
- User
Connections 8
- User → Express app: requests lists
app.js - User → Express app: submits items
app.js - Express app → Date formatter: gets date
app.js - Date formatter → Express app: returns date
app.js - Express app → In-memory lists: reads lists
app.js - Express app → In-memory lists: adds items
app.js - Express app → List view: renders
app.js - Express app → User: responds or redirects
app.js