This project provides a simple way of implementing a jukebox running from nodejs and youtube.
- Express
- EJS
- body-parser
- Request
- Helmet
- htmlencode
- nodemon (Optional)
Download the repository and extract if in a zip, then run.
npm install
This will install all the required modules.
If you would like to use the supplied batch file to make the server reboot automatically then run either
npm install nodemon
or
npm install -g nodemon
to install it globally
port
- The port to run the webserver on
- Type:
integer
- Default:
3000
youtubeAPIKey
defaultPlaylist
- The default playlist to play if there is no songs queued. If it is set to
''
then it will be disabled. - Type:
string
- Default:
'PLx0sYbCqOb8Q_CLZC2BdBSKEEB59BOPUM'
(UK Top 40 Songs)
- The default playlist to play if there is no songs queued. If it is set to
defaultRandomOrder
- True if you want the default playlists songs to be played in a random order.
- Type:
boolean
- Default:
true
playerControls
- Should the youtube player controls be shown.
- Type:
boolean
- Default:
false
playerLockedHosts
- Should the player page be restricted to certain connection domains.
- EG: jukebox.yoursite.com would be denied but if navigated to localhost then it would be accepted.
- Type:
boolean
- Default:
true
playerLockedHostsList
- Domain list for above setting.
- Type:
string array
- Default:
["localhost", "127.0.0.1"]