s3 audio file storage with templated front end.
Written for Computer Science House. More info on the CSH wiki.
Allows house members to store audio files on an s3 bucket (backed by the CSH ceph rgw).
Files can be retrieved for listening through the web interface, or through the get_harold
route.
Presigned s3 urls are handed out when the play button is clicked with a 302 return (to prevent the presigned url
from expiring after the page is loaded).
TODO:
- Make front end easier to browse
- Use dynamic front end library (react?, or something)
- Switch over to boto3 instead of boto
- Move helper functions out of init.py
From the root directory of the repo, setup a virtualenv with python3, then:
python setup.py install
or
python setup.py develop
export FLASK_APP=audiophiler
flask run
See config.py
for necessary environment variables.