title | description |
---|---|
we talk project |
a video chat app for the browser |
If you need just to set it up and use it without reading a lot about I implement it, so you can start from here!
set it just locally (on your machine)
- clone the app into your machine
git clone we_talk
- change the directory to the project
cd we_talk
- install the dependencies
yarn install
# (or you can use npm)
- download the peerjs locally using this command
npm install peer -g
- then run it using 3001 port you can change the port
peerjs --port 3001
- then lunch the app
yarn dev
- go to the browser and enter (https://localhost:3000/)
set it for use it in a large way π
- do the same previews steps
- install ngrok if you don't have it already on your machine
- ngrok http localhost:3001
- then get the link from ngrok and you have to change some lines in your code
script.js
const myPeer = new Peer(undefined, {
host: "420dac3efc08.ngrok.io",//here you can put your new URL like 420dac3efc08.ngrok.io
});
instead of this in script.js file line 3
const myPeer = new Peer(undefined, {
host: "/",
port:"3001"// if you change the port in peer command line ,make sure to chnage it here too :)
});
- ngrok http localhost:3000
- get the last link and send it to your friends and start to communicate π
this project is a simple implementation of nice tech like webRTC(real-time communacation ), peerjs ,and also express for simple backend logique , for the front end I chose just ejs as template engine , with bootstrap v4
- webRTC (https://webrtc.org/)
- peerjs (https://peerjs.com/)
- socket.io (https://socket.io/)
- nodejs (https://nodejs.org/en/)
- express (https://expressjs.com/)
- ejs,bootstrap (https://ejs.co/) (https://getbootstrap.com/)