The source files for the EternalJukebox, a rehosting of the Infinite Jukebox.
This repo contains everything you need to host the EternalJukebox on your own server!
You can visit the official site here, in case you want to mess around with it without doing all the hard stuff.
Download and install Java from https://www.java.com/en/download/
Debian-based Linux distributions
For Ubuntu or Debian-based distributions execute
sudo apt-get install default-jre in the terminal
Fedora and CentOS
There is a tutorial for installing java on Fedora and CentOS at https://www.digitalocean.com/community/tutorials/how-to-install-java-on-centos-and-fedora
Download the .exe at https://yt-dl.org/latest/youtube-dl.exe and place it in
C:\Windows\, or in another folder on the PATH.
Use these commands in the terminal to install youtube-dl on Linux:
sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl
sudo chmod a+rx /usr/local/bin/youtube-dl
Download the exe from https://ffmpeg.zeranoe.com/builds/ and place it in
C:\Windows\, or in another folder on teh PATH.
ffmpeg is available to download in most distributions using
sudo apt-get install ffmpeg or equivalent
Getting the project files:
The whole process of obtaining project files is much easier now, as the build process is streamlined through Jenkins.
First thing to do is create a new file called either
config.json (YAML tends to be easier to write, but takes up slightly more space), then open it with notepad/notepad++ on Windows and whatever text editor you like on Linux (for example nano:
Now you should go to https://developer.spotify.com/my-applications/ and log in to your spotify account.
Then click the "Create an app" button and a new page should popup.
There give it a name and description and click create.
It should send you to the new app's page, the only thing you need from here is your Client ID and Client Secret
(Note: Never share these with anyone!)
You will also need a Youtube Data API key, which you can find about how to obtain here.
There are a variety of config options (documentation coming soon) that allow most portions of the EternalJukebox to be configured, and these can be entered here.
Starting the server:
First you need to open the Terminal or Command Prompt.
Then make sure its running in the folder that your EternalJukebox.jar is in, once again to do this use the
Then execute the jar with
java -jar EternalJukebox.jar
If everything went right it should say
Listening at http://0.0.0.0:11037
you should now be able to connect to it with a browser through http://localhost:11037
Congrats you did it!
This is not recommended unless you're making some modifications, and as such should only be performed by more advanced users
From there, building in Gradle is simple; just run
gradle clean shadowJar from the project file directory. That should produce a jar file in
build/libs that will work for you. In addition, you'll need to build the Jekyll webpages, which can be done by running
jekyll build --source _web --destination web