This project is a basic chat application that allows users to join different chat rooms and communicate in real-time. The application is built using the following technologies:
- Node.js: JavaScript runtime for server-side development.
- Express: Web application framework for Node.js.
- MongoDB: NoSQL database for data storage.
- EJS: Templating engine for server-side rendering.
- Socket.io: Library for enabling real-time, bidirectional communication.
- Backend Framework: Express.js
- Database: MongoDB
- Templating Engine: EJS
- WebSockets: Socket.io
- Node.js: Download Node.js
- Express:
npm install express
- MongoDB: MongoDB Installation Guide
- EJS:
npm install ejs
- Socket.io:
npm install socket.io
- Real-time communication using Socket.io.
- Multiple chat rooms for users to join.
- Server-side rendering of dynamic content using EJS.
-
Clone the repository:
git clone https://github.com/vishnu-mouli-102408/Chat-App.git
-
Install dependencies:
npm install
-
Configure environment variables:
- Create a
.env
file in the project root. - Set the following variables in the
.env
file:MONGODB_URI=your_mongodb_connection_string
- Create a
-
Run the application:
npm start
-
Access the application:
- Once the application is running, visit
http://localhost:3000
(or the specified port) in your web browser.
- Once the application is running, visit
-
Join a chat room:
- Choose or create a chat room and start chatting in real-time with other users.
-
Explore the Chat App!
Ensure to set the following environment variable in your .env
file:
MONGODB_URI
: MongoDB connection string.
This project is licensed under the MIT License.