decentralized-video-chat/README.md
2020-03-28 14:06:04 -04:00

38 lines
1.5 KiB
Markdown

# Decentralized Video Chat
[![Author](https://img.shields.io/badge/Author-ianramzy-brightgreen.svg)](https://ianramzy.com)
![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)
[![Donate](https://img.shields.io/badge/Donate-PayPal-brightgreen.svg)](https://paypal.me/ianramzy)
![GitHub repo size](https://img.shields.io/github/repo-size/ianramzy/decentralized-video-chat.svg)
[![Repo Link](https://img.shields.io/badge/Repo-Link-black.svg)](https://github.com/ianramzy/decentralized-video-chat)
# → https://neonchat.io
Decentralized video chat platform powered by WebRTC using Twilio STUN/TURN infrastructure.
# Quick start
* You will need to have Node.js installed, this project has been tested with Node version 10.X.X and 12.X.X but
probably works with more versions
* Clone this repo
```
git clone https://github.com/ianramzy/decentralized-video-chat
cd decentralized-video-chat
```
* Install dependencies
```
npm install
```
* Create a `.env` file copying `.env.template` (You can copy the file using the command below).
```
cp .env.template .env
```
* Fill in your `Account SID` and `Auth Token` from your [Twilio console](https://www.twilio.com/console)
It takes 2 minutes to sign up for a free account.
* Start the server
```
npm start
```
* Open two browsers on your laptop and point them `localhost:3000`.
* If you want to use a client on another computer, make sure you publish your server on an HTTPS connection.
You can use a service like [ngrok](https://ngrok.com/) for that.