A real-time chat application built using Node.js, Express, Socket.IO and HTML, CSS, JS that enables multiple users to connect and communicate instantly in a shared chatroom.
- ๐ Real-time communication using WebSockets
- ๐ฅ User joins and leaves notifications
- โ๏ธ Instant message broadcasting
- ๐ป Minimal, responsive front-end UI
- โก Lightweight and fast performance
- Frontend: HTML, CSS, JavaScript
- Backend: Node.js, Express
- WebSocket: Socket.IO
- Install nodejs
- Intialize npm to create package.json file:
npm init --yes - Install expressjs:
npm install --save express - Install socket.io:
npm install --save socket.io - Use MongoDB for database
- Install mongoose:
npm install --save mongoose
- Navigate to the
ChatAppdirectory. - Install all dependencies with:
npm install
-
Start your local MongoDB service. (For macOS with Homebrew, the command is
brew services start mongodb-community) -
Start the Node.js server.
node server.js
- Open your web browser and navigate to http://localhost:5000
