Skip to content

Otto-AA/piano-visualizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installing

Run pip install -r requirements.txt.

Running

  1. Set the environment
export FLASK_ENV=development
export FLASK_APP=player
  1. initialize database
flask init-db
  1. create user
flask create-user namy passy
  1. run server
flask run

API routes

  • POST /users/newpassword

  • POST /users/login

  • POST /users/logout

  • GET /songs/{user_name}

  • POST /songs/{user_name}

  • PUT /songs/{user_name}/{song_id}

  • GET /songs/{user_name}/{song_id}

  • DELETE /songs/{user_name}/{song_id}

  • PUT /files/{user_name}/{song_id}.{ext}

  • DELETE /files/{user_name}/{song_id}.{ext}

TODO

  • link everything together properly
  • song preview (-> iframe messaging with player)
  • design preview (-> iframe messaging with player)
  • mp3-midi offset -> save in db or fix in file