/drumserver

simple api to navigate drum sample s3 bucket

Primary LanguagePython

drumserver

a simple api endpoint to navigate a large directory of drum samples to power web audio apps.

the /static folder contains a copy of the directory structure in an s3 bucket. this app uses python os to traverse the directories but the files in this repo have no data. The purpose is solely to provide a folder navigation UI, not to actaully serve the audio files.

Running Locally

Make sure you have Python 3.11 installed locally. To push to Heroku, you'll need to install the Heroku CLI, as well as Postgres.

Create an environment

$ python3 -m venv env
$ pip install -r requirements.txt

$ createdb drumserver

$ python manage.py migrate
$ python manage.py collectstatic

python3 manage.py runserver

or activate existing environment sh

virtualenv env

Your app should now be running on localhost:5000.

Deploying to Heroku

$ heroku create
$ git push heroku master

$ heroku run python manage.py migrate
$ heroku open

or

Deploy

Documentation

For more information about using Python on Heroku, see these Dev Center articles: