This repository has been archived by the owner. It is now read-only.
Music player web app: retrieves music from YouTube and plays it on your web browser
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
templates
.gitignore
Dockerfile
README.md
app.py
requirements.txt
screenshot.png
settings.py
utils.py
youtubeapi_utils.py

README.md

Pelican

Music player web app: just enter a song's name/artist, and press enter. It retrieves the song from YouTube and plays it in your browser.

Features:

  • simple music player
  • supports all modern web browsers (tested: Firefox/Chrome/Safari/iOS's Safari)
  • plays ogg or mp3 depending on the web browser

Note: if you want to run the project on your server, you will need a YouTube API key.

Screenshot

Screenshot of Pelican

Setting up

Production

The simplest way to deploy the project is using Docker. First, you need to build the image from the Dockerfile :

docker build -t pelican .

Then, just type:

docker run -d --name pelican -p 25232:80 -v pelican_data:/usr/src/app/static/music -e YOUTUBE_API_KEY=my_key pelican

You can now access Pelican at localhost:25232.

Debug

First, you have to install some packages:

apt-get install -y ffmpeg libmp3lame-dev libvorbis-dev

Then, create a virtualenv (with python3) and :

pip install -r requirements.txt

And finally :

python app.py