Posts

Showing posts from 2019

Three ways to deploy Node.Js applications quickly

Image
Have you developed a node application recently and would like to flaunt it? If yes, you have reached the correct page.  Before you begin deploying your project, I recommend that you upload it to git profile first. Following are three super easy ways to deploy your node project: 1.  Glitch This tool is very easy to use. After you have made a new repository for your project on GitHub, you can just easily click on "Clone from Git Repo" as shown in the image(below). Wait for some time for glitch to fetch the required files. After that a URL will be provided at which your application is hosted. Cheers, your app is live!!. 2. Heroku Although it might be super easy to deploy your project on glitch but it might cause problems on a long run.Therefore, I suggest to deploy your app with heroku. For that you will need heroku CLI.  MacOs: brew install heroku/brew/heroku Windows:   64 bit , 32 bit Linux: sudo snap install heroku --classic After doing

How to make a peer-connection using webrtc

Image
designing a simple video chat application  To get a fair idea of what we are trying to build let us examine the figure We want to build a connection between two clients so that they can share their video-streams .As it is clear from the figure that we need a mediator to act as a channel between the clients.Our purpose will be solved by a server which can connect users over the internet using their IP addresses.  Let us begin with the server. The server just needs to handover whatever it receives from one user to the other. We will establish an express server. Establishing an express server is quite easy.(First, install express package locally for your project.) const express = require ( ' express ' ) const app = express () Just these two lines will establish your express app to handle API request like GET and POST. Now,we add some configuration to our express app. app . use ( express . json ()) app . use ( express . urlencoded ({ extended : true }