- Make sure that you have Node.js v8.10 and npm v5 or above installed.
- Clone this repo using
git clone https://github.com/aviquid/pet-monitor.git <YOUR_PROJECT_NAME>
- Move to the appropriate directory:
cd <YOUR_PROJECT_NAME>
. - Run
yarn install
in order to install dependencies.
At this point you can runyarn start
to see the example app athttp://localhost:3000
.
Now you're ready to rumble!
- React
- Peerjs
- Socket.io
- Express
- Run the app.
- Enter an unorthodox room name (unique name).
- Click on "Camera" button on the device, which you want to act as a CCTV.
- On an another device (multiple devices supported too), enter the unorthodox room name you gave earlier.
- Click on "Show me Joe" button, to view CCTV.
- Happy Stalking!