Skip to content

SarvarbekUP/p2p-chat-mvp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

P2P Chat Application

P2P Chat Screenshot

This project is a real-time peer-to-peer (P2P) chat application. This application allows users to exchange messages via WebSocket.

Technologies

  • Node.js: For server-side
  • Express: To create the HTTP server
  • WebSocket: For real-time communication
  • HTML/CSS: For the user interface

Installation

  1. Install Node.js and NPM. You can download it from the official Node.js website.

  2. Clone the project:

    git clone https://github.com/SarvarbekUZprog/p2p-chat-mvp.git
    cd p2p-chat

    Please replace SarvarbekUZprog with your actual GitHub username.

  3. Install the required packages:

    npm install
  4. Start the server:

    node index.js

    The server will run on port 3000.

  5. Open in the browser:

    Open your browser and go to index.html. This will display your chat application.

How it Works

  • WebSocket provides real-time communication between users.
  • Each user is assigned a userId (UUID) when connecting.
  • When a user sends a message to another user, the message is delivered directly to the intended recipient.

Authors

  • Sarvarbek Aminov

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published