Skip to content

full-stack node website that syncs <video> stream + anonymous chat

Notifications You must be signed in to change notification settings

dany-on-demand/mn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mn

website that syncs <video> stream + anonymous chat

akin to a self-hosted cytube or rabb.it 🔎 pull requests welcome

usage

  • node server.js
    • runs on default port 3016
    • websockets on port 8080
  • on production hide behind nginx
  • mn assumes the file you want to stream is stored in /media
  • login route, admin password and admin page route are printed to the console on startup, write them down
  • changing media_file will reload the video for everyone

features

  • sync video watch time with admin
  • show any video supported by browser's
  • anonymous chat
  • hot-reload of videos for clients
  • client notification
  • chat and sync via websockets
  • rudimentary admin authentication
  • templating via slm
  • routing via express

compatibility

Tested on Ubuntu 16.04, Debian 8, Fedora 24 and Windows 10.1511 written for nodev4, not tested on nodev6

pre-install

install node.js and npm, open ports 3016 and 8080 for development, or port 80 for production

setup

  • clone the repo
  • npm install

stats

  • ~ 500 CLOC + 300 CSS lines
  • tested with 30 users
    • almost no bandwidth overhead
    • 40MB memory usage

About

full-stack node website that syncs <video> stream + anonymous chat

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published