Socket-Box is a basic chat application built with Node.js, Express, and Socket.io. It enables real-time communication between users without using any backend server for emitting events. This application is created following a basic Socket.io tutorial.
Demo Video: https://github.com/education-tech-stack/socket-box/assets/48860013/02541d53-04de-41ab-8d8f-bfc81c53f505
- Real-time chat with multiple users.
- No need for a dedicated backend server to emit events.
- Simple and easy-to-understand codebase.
- Built with Node.js, Express, and Socket.io.
-
Clone the repository:
git clone https://github.com/education-tech-stack/socket-box.git cd Socket-Box -
Install dependencies:
npm install
-
Start the server:
npm run start
-
Open your web browser and go to
http://localhost:3000to access Socket-Box.
- Chat Interface:
- You can join the chat room by entering your name and clicking "Join Chat."
- You can join multiple rooms.
- Send and receive messages in real-time with other users who have joined the same chat room.
server.js: The main entry point for the Express application.public/: Contains the HTML and client-side JavaScript for the chat interface.public/: Contains the HTML and CSS files to display the page.
Contributions are welcome! If you have any suggestions, improvements, or want to add features, feel free to fork this repository and create a pull request.
This project is open-source and available under the MIT License.
Start chatting in real-time with Socket-Box! π¬π²