Beats by ACM
Python CSS JavaScript HTML Mako
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
migrations
static
.gitignore
README.md
alembic.ini
art.py
audit_log.py
beats.cfg.sample
config.py
crossdomain.py
db.py
gunicorn_config.py
main.py
player.py
prod_setup.txt
requirements.txt
scan_all.py
scan_netid.py
scheduler.py
song.py
soundcloudlib.py
user.py
vlc.py
youtube.py

README.md

Beats by ACM

New Acoustics Media Player for ACM@UIUC.

Setup

First, install MySQL locally and start it. Create a database for Beats.

echo "CREATE DATABASE acoustics2;" | mysql

Set up a virtual Python environment for this project.

virtualenv venv
source venv/bin/activate

Then install all the Python dependencies.

pip install -r requirements.txt

Initialize the database.

python db.py

Add songs. From the Python interpreter:

import song
song.add_songs_in_dir('/path/to/music')

Finally, create a beats.cfg file from beats.cfg.sample and customize it.

Now you're ready to start the Beats server.

gunicorn -c gunicorn_config.py main:app

The server will start at http://localhost:5000/.

Adding songs on prod

cd /var/www/beats
source venv/bin/activate
./scan_netid.py netid1 [netid2 netid3 ...]