A simple chat application built with Node.js, Express, MongoDB, and EJS.
Supports CRUD operations (Create, Read, Update, Delete) with a modern UI.
- View all chats in a card layout
- Add new chat messages
- Edit existing chat messages
- Delete chats
- MongoDB for storage
- Styled with modern CSS
- Node.js + Express
- MongoDB + Mongoose
- EJS Templates
- Method Override for PUT/DELETE
- CSS (modern UI)
-
Clone repo:
git clone https://github.com/AmitPrasad212003/OpenVoice.git cd chat-crud-app -
Install dependencies:
npm install
-
Start MongoDB locally:
mongod
-
(Optional) Seed DB:
node init.js
-
Run project:
node index.js
-
Open in browser:
http://localhost:8080/chats
π Add screenshots here after running locally:
- Home (All Chats)
- New Chat Form
- Edit Chat Form
chat-crud-app/
βββ models/
β βββ chats.js
βββ public/
β βββ style.css
βββ views/
β βββ index.ejs
β βββ new.ejs
β βββ edit.ejs
β βββ 404.ejs
β βββ partials/
β βββ header.ejs
β βββ footer.ejs
βββ init.js
βββ index.js
βββ package.json
Amit Prasad