Popcorn Time as a Nodejs app :D
- Install Node.js
- Install peerflix
- Serve the frontend folder with your favorite webserver
- Set a proxypass to redirect from /socket.io/ to http://localhost:3000
Exemple with nginx:
location /socket.io/ {
proxy_pass http://localhost:3000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
}
-
The fun part :
cd app npm install node candyflix.js
Credits
-------
Popcorn Time and Time4popcorn
Dageiko for the candyfloss logo (http://dageiko.deviantart.com/)