Skip to content

Edx-X11/Concept-Node.JS-Chatroom

Repository files navigation

Create Release https://edx-x11.github.io/Concept-Node.JS-Chatroom/

Concept-Node.JS-Chatroom

This is a simple chatroom application built using Node.js and WebSocket technology. It allows users to connect to a chatroom server and exchange messages in real-time.

Features

Real-time Communication: Users can send and receive messages instantly within the chatroom. Username Registration: Upon connecting to the server, users are prompted to choose a username before joining the chat. Broadcast Messages: Messages sent by users are broadcasted to all other connected clients. User Disconnect Handling: When a user disconnects from the server, a notification is sent to all remaining users. #Getting Started

  1. Prerequisites
  2. Node.js installed on your system
  3. Internet connection for WebSocket communication

Installation

Clone the repository to your local machine:

git clone (https://github.com/Edx-X11/Concept-Node.JS-Chatroom)

Navigate to the project directory:

cd chatroom

Install dependencies:

npm install

Usage

Start the WebSocket server: npm start Open the chatroom client in your web browser: http://localhost:3000 Enter your desired username and start chatting!

Contributing

Contributions are welcome! If you'd like to contribute to this project, please follow these steps:

  1. Fork the repository
  2. Create a new branch (git checkout -b feature/your-feature)
  3. Make your changes
  4. Commit your changes (git commit -am 'Add some feature')
  5. Push to the branch (git push origin feature/your-feature)
  6. Create a new Pull Request

License

This project is licensed under the MIT License - see the https://github.com/Edx-X11/Concept-Node.JS-Chatroom/tree/main?tab=MIT-1-ov-file for details.

Acknowledgements

WebSocket - Simple to use, blazing fast, and thoroughly tested WebSocket client and server for Node.js Node.js - JavaScript runtime built on Chrome's V8 JavaScript engine

Made by EDX

About

A simple node.js chat room i made as a proof of concept

Resources

License

Stars

Watchers

Forks

Packages

No packages published