How rahulyadav7418/mini-whatsapp-crud works
A small Express/Mongoose chat CRUD app: users browse chats, create messages, edit or delete them, while the server renders EJS pages and persists chat records in MongoDB. The route and model behavior is supported by sampled source; the delete-confirmation feature is documented in the README, but its exact implementation was not sampled.
Main entry points: index.js Express routes · views EJS templates · chat.js Chat model · index.ejs Chat list
Components 9
Web application
- Express routes
index.js
Rendered interface
- EJS templates
views - Chat list
views/index.ejs - New chat form
views/new.ejs - Edit form
views/edit.ejs - Page styling
public/style.css
Chat persistence
- Chat model
models/chat.js - WhatsApp database
Other components
- Chat user
Connections 9
- Chat user → Express routes: requests chats
- Express routes → EJS templates: renders pages
- EJS templates → Chat list: selects list
- EJS templates → New chat form: selects form
- EJS templates → Edit form: selects form
- Express routes → Chat model: queries and mutates
- Chat model → WhatsApp database: reads and writes
- Express routes → Chat user: returns pages
- Express routes → Page styling: serves asset