A real-time chat application built with Node.js, Express.js, Socket.IO, and Mustache templating engine. This application allows users to communicate in real-time through a web-based chat interface.
- Real-time bi-directional communication using WebSockets
- User authentication and registration
- Private messaging between users
- Efficient UI rendering with Mustache templates
- Node.js
- Express.js
- Socket.IO (for real-time communication)
- Mustache (templating engine)
- MongoDB (for data persistence)
-
Clone the repository: https://github.com/rohitraut-r/Chat-App-NodeJS.git
-
Install Dependencies npm install
-
Set up the environment variables:
- Create a
.envfile in the root directory - Add the following variables:
MONGODB_URI: Your MongoDB connection stringSESSION_SECRET: A secret key for session management
- Start the server: npm start
The app will be running at http://localhost:3000.
- Navigate to
http://localhost:3000in your web browser. - Join or create a chat room.
- Start sending and receiving real-time messages.
This project is licensed under the MIT License.