Skip to content

VTharakaRam/mini-whatsapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

💬 Mini WhatsApp

A simple full-stack chat messaging app built with Node.js, Express, MongoDB, and EJS — supporting full CRUD operations.


🚀 Features

  • View all chats
  • Create a new chat message
  • Edit an existing message
  • Delete a message (with confirmation popup)
  • Clean and minimal UI

🛠️ Tech Stack

Layer Technology
Backend Node.js, Express.js
Database MongoDB, Mongoose
Templating EJS
Styling CSS
Other Method-Override

📁 Project Structure

mini-whatsapp/
│
├── models/
│   └── chat.js          # Mongoose schema
│
├── views/
│   ├── home.ejs         # Home page
│   ├── chat.ejs         # All chats page
│   ├── new.ejs          # Create new chat
│   └── edit.ejs         # Edit chat message
│
├── public/
│   ├── style.css        # Stylesheet
│   └── script.js        # Delete confirmation popup
│
├── index.js             # Main server file
├── init.js              # Seed data file
└── package.json

⚙️ Setup & Installation

1. Clone the repository

git clone https://github.com/your-username/mini-whatsapp.git
cd mini-whatsapp

2. Install dependencies

npm install

3. Make sure MongoDB is running

mongosh

4. Seed the database (optional)

node init.js

5. Start the server

node index.js

6. Open in browser

http://localhost:8080

📌 REST API Routes

Method Route Description
GET / Home page
GET /chats Get all chats
GET /chats/new New chat form
POST /chats Create new chat
GET /chats/:id/edit Edit chat form
PATCH /chats/:id Update a chat
DELETE /chats/:id Delete a chat

🌱 Environment

Make sure MongoDB is running locally on:

mongodb://127.0.0.1:27017/whatsapp

👤 Author

Made with ❤️ by Tharak


📄 License

This project is open source and free to use.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages