Skip to content

asteroid-music/asteroid-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

asteroid-api

Setup

pip install -r requirements.txt

Running

python run.py

Configure with environment variables:

  • MUSIC_PATH: path to directory to keep music (directory must exist)
  • MONGO_SRV: mongodb+srv url
  • DEBUG: enable hot reload

For example, a full launch command could be

DEBUG=True MONGO_SRV="mongodb://localhost:27017" MUSIC_PATH="~/some/path" python run.py

Built with FastAPI and uvicorn ASGI.