Code Monkey home page Code Monkey logo

p2pchat's Introduction

p2pchat

A Holepunch based p2p chat application

How to (Locally)

  1. Clone the repo and go to commit ID 393e510d658a3dabcc83321bf7c9fa77c6b58e7f
  2. Start node server from /server using npm run dev
  3. Start react server from /p2pchat using npm start
  4. Click Join to create a publickey in console
  5. Use that console to chat from your cli (peer.mjs can be used to connect to the react instance) node peer.mjs <remotePublicKey>
  6. Start sending messages from react frontend
  7. Messages for react + node instance will be received in console.

Demo: https://drive.google.com/file/d/1OPlKycOoMYgsRdohr9IvCjI1yuxZDt93/view?usp=sharing

How to (Web: Experimental)

Simplex communication from react to cli (for now).

  1. Use cli (peer.mjs) to create topic
  2. Enter topic in https://p2pchat-frontend.vercel.app/ and connect with CLI instance
  3. Send messages through the website and messages will be reflected in CLI

Demo: https://drive.google.com/file/d/17pk75MJ0b4QUCJQBOgiQ6YqzoUe567a9/view?usp=sharing

Functionalities/To Do

  • Connect users by topic
  • P2P Communication
  • Hyperstore to store messages
  • Reflection of messages in React frontend (Have to fix, temporary fix: console)
  • Deployment
  • UI
  • Reflect publicKey generated in homepage

p2pchat's People

Contributors

kiranraaj19 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.