Skip to content

Simple Web Application that offer you to create video meeting room using WebRTC and Socket.

License

Notifications You must be signed in to change notification settings

50UM3N/video-chat

Repository files navigation

WebRTC Video Chat

Simple Web Application that offer you to create video meeting room using WebRTC and Socket

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

You have to install Node.js in your machine.

Installing

After installing node clone the repo by using git

git clone https://github.com/50UM3N/video-chat.git
                        or
git clone git@github.com:50UM3N/video-chat.git

Or you can download the zip file.

Then open cmd or git bash on the project folder to install some modules that I used to build this project

Install Once

npm install

Nodemon For automatically restart the server as a dev dependency (optional)

npm i --sav-dev nodemon

Setting Database

For the database I use mongodb Atlas. But you can use the local also.

If you don't have any account in Atlas. Visit the page and create a free account then get your connection string. More at Documentation.

Rename the file .env_sample to .env then replace "connection string" to your connection string

Example

MONGO_URL=mongodb+srv://dbUser:<password>@cluster0.kfx8y.mongodb.net/myFirstDatabase?retryWrites=true&w=majority

Running the App

If you install nodemon the you can use. (devStart script is already added to the package.json)

npm run devStart

or

node server.js

Live Demo

For deploy the project I use heroku

Video Chat

Built With

  • Node Js - The Backend
  • Peer JS - PeerJS simplifies WebRTC peer-to-peer data, video, and audio calls.
  • SocketIo - For realtime communication
  • NPM - Dependency Management
  • GIT - Used for version control
  • Heroku - Used to Deploy Node.js applications

License

Video Chat is released under the MIT license.