Skip to content
/ webrtc Public
forked from anev/webrtc

webrtc chat based on react and flux (redux)

Notifications You must be signed in to change notification settings

gechnas/webrtc

 
 

Repository files navigation

Description

RebRTC based peer-to-peer chat implemented with react.js and flux architecture.

  • Redux is used as flux implementation.
  • Peer.js is used to webrtc communications.
  • As a signal server I use peer.js + express server, it is deployed on 46.101.152.230.
  • Signal server is used for the firts-time chatmates search only. All other communications are peer-to-peer.

Features

  • Each participant stores chat history and send it to newcomer.
  • Management is command based, a command format is /<command> param.
  • /name john command will set your name, the name is stored in local storage.
  • /who command asks who's online now.
  • /help prints help message.
  • Also mentions are implemented, you can mention john with @john substring, the message will be highlighted in john's UI.
  • Feel free to like any messages.

Installation

First of all, you can access it on http://46.101.152.230:3000/

To deploy it please procced several steps

  1. nodejs 0.12 has to be installed on target system.

  2. install it

git clone git@github.com:anev/webrtc.git
cd webrtc
npm install
  1. Run chat server node server.js

  2. Run signaling server node discover.js

Also you can use docker to run the app (a Dockerfile provided)

  • docker build -t chatapp .
  • docker run -p 3000:3000 chatapp

About

webrtc chat based on react and flux (redux)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 75.5%
  • CSS 23.9%
  • HTML 0.6%