How scotch-io/node-todo works
This is a small Node/Express and Angular todo application: a user opens the browser UI, the Angular controller uses a service to request the todo API, and the API reads or changes MongoDB-backed todos. The graph preserves the frontend, API, model and database-configuration layers. The README documents MongoDB storage and the browser workflow; the HTML view is listed in the tree but was not sampled, so no UI-to-controller wiring is asserted.
Main entry points: server.js Express server · routes.js Todo API routes · todos.js Todo service · todo.js Todo model
Components 10
Angular frontend
- Browser view
public/index.html - Todo controller
public/js/controllers/main.js - Todo service
public/js/services/todos.js - Angular module
public/js/core.js
Node API
- Express server
server.js - Todo API routes
app/routes.js
Todo persistence
- Todo model
app/models/todo.js - Database config
config/database.js
Other components
- Todo user
- MongoDB
Connections 9
- Todo user → Browser view: uses
README.md - Express server → Browser view: serves static files
server.js - Express server → Todo API routes: registers routes
server.js - Express server → Database config: loads config
server.js - Express server → MongoDB: connects
server.js - Todo controller → Todo service: calls
public/js/controllers/main.js - Todo service → Todo API routes: HTTP requests
public/js/services/todos.js - Todo API routes → Todo model: queries and changes
app/routes.js - Todo model → MongoDB: stores todos
README.md