Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/acm-uiuc/beats
Beats by ACM
https://github.com/acm-uiuc/beats
Last synced: about 18 hours ago
JSON representation
Beats by ACM
- Host: GitHub
- URL: https://github.com/acm-uiuc/beats
- Owner: acm-uiuc
- Created: 2014-02-24T18:46:52.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-09-15T21:41:10.000Z (about 8 years ago)
- Last Synced: 2024-04-09T11:30:25.958Z (7 months ago)
- Language: Python
- Homepage:
- Size: 1.2 MB
- Stars: 11
- Watchers: 12
- Forks: 19
- Open Issues: 25
-
Metadata Files:
- Readme: README.md
- Audit: audit_log.py
Awesome Lists containing this project
README
Beats by ACM
============New Acoustics Media Player for ACM@UIUC.
Setup
-----First, install MySQL locally and start it. Create a database for Beats.
```bash
echo "CREATE DATABASE acoustics2;" | mysql
```Set up a virtual Python environment for this project.
```bash
virtualenv venv
source venv/bin/activate
```Then install all the Python dependencies.
```bash
pip install -r requirements.txt
```Initialize the database.
```bash
python db.py
```Add songs. From the Python interpreter:
```python
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.
```bash
gunicorn -c gunicorn_config.py main:app
```The server will start at [http://localhost:5000/](http://localhost:5000/).
Adding songs on prod
--------------------
```bash
cd /var/www/beats
source venv/bin/activate
./scan_netid.py netid1 [netid2 netid3 ...]
```