How luigemalto/week-7 works
This is a small user-management web application. A visitor submits or deletes a user through the browser UI; the Express API handles the request and uses the Mongoose User model for persistence in MongoDB. The UI also loads and displays the user list. The excerpts establish these main routes and calls; the README is empty, and no HTML or database configuration details are available.
Main entry points: server.js Express app · app.js User form and list · users.js User CRUD routes · User.js User schema
Components 6
Browser UI
- User form and list
Public/js/app.js
API server
- Express app
server.js - User CRUD routes
routes/users.js
User persistence
- User schema
models/User.js - MongoDB
Other components
- Visitor
Connections 6
- Visitor → User form and list: uses
- User form and list → Express app: requests API
Public/js/app.js - Express app → User CRUD routes: mounts routes
server.js - User CRUD routes → User schema: CRUD calls
routes/users.js - Express app → MongoDB: connects
server.js - User schema → MongoDB: stores users