A lightweight chat management web application built using Node.js, Express, MongoDB, and EJS templates. Users can create, edit, and delete messages, with timestamps showing creation and updates.
- Create new chats with sender and receiver names.
- Edit existing chat messages.
- Delete chat messages with a confirmation popup.
- Track message creation and last updated timestamps.
- Minimal and responsive UI for ease of use.
- Node.js - Backend runtime
- Express.js - Web framework
- MongoDB - Database for storing chats
- Mongoose - ODM for MongoDB
- EJS - Templating engine
- HTML, CSS, JS - Frontend UI
- Method-Override - Enable PUT & DELETE methods in forms
- Clone the repository:
git clone https://github.com/LikithaKodidela/chatLane.git
cd chatLane- Install dependencies:
npm install- Set up environment variables:
- Create a
.envfile in the root directory (you can use.env.exampleas a template):
MONGODB_URI=your_mongodb_connection_string
PORT=8080Tip: Make sure
.envis listed in.gitignoreto keep your database credentials private.
- Start the application:
npm start- Open your browser and go to:
http://localhost:8080
- Navigate to the home page to see all chats.
- Click "New Chat" to create a message.
- Click "Edit" to modify a chat.
- Click "Delete" to remove a chat (confirmation required).
Contributions are welcome! Please follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature/YourFeature). - Commit your changes (
git commit -m 'Add some feature'). - Push to the branch (
git push origin feature/YourFeature). - Open a pull request.
- GitHub: LikithaKodidela
- Email: likithakodidela14@gmail.com
- Ensure MongoDB is running or accessible via your connection string.
- Port
8080is used by default, you can change it in.envif needed.