A beginner-friendly, real-time chat application built with Node.js, Socket.io, and HTML/CSS.
Users can join with a username, send and receive messages instantly, and see when others join or leave the chat.
- Real-time messaging: Instantly send and receive messages with all connected users.
- Usernames: Join the chat with your own username.
- User notifications: See when users join or leave the chat.
- Responsive UI: Clean and simple interface that works on desktop and mobile.
git clone https://github.com/harshitpandey/chat-app.git
cd chat-appnpm installFor one-time run:
node server.jsFor auto-restart on changes (recommended for development):
npx nodemon server.jsGo to http://localhost:3000 in your browser.
- Enter a username and click Join.
- Type your message and press Send.
- See messages and notifications in real time as others join, chat, or leave.
chat-app/
├── public/
│ ├── index.html
│ ├── script.js
│ ├── style.css
│ └── styles.css
├── server.js
├── package.json
└── README.md
- Add message timestamps
- Show a list of online users
- Support private rooms or direct messages
- Add emojis or file sharing
Pull requests are welcome! For major changes, please open an issue first to discuss what you would like to change.
Feel free to open an issue or reach out!