storemaven spotify tracker home assignment
- clone project to dir
- in terminal: cd storemaven_spority_tracker/src
- set mysql db -> in terminal: docker-compose up -d; (to track logs run> docker-compose logs -f)
- create tables -> in terminal: python3 utils/db_utils.py (also can run from IDE this module)
- set your spotify client_id and secret in constants.py file
- start app -> in terminal: python3 spotify_tracker_app.py (also can run from IDE this module)
Create category entity: POST 127.0.0.1:5000/entity/create
Remove caregoty entity: POST 127.0.0.1:5000/entity/remove
valid request:
{"categoryName": "Workout"}
non-valid request:
{}
{"categoryName": "noam"} //not supported by spotify
Trigger track all categories we've created: POST 127.0.0.1:5000/track
valid requests:
{} -> no dry run
{"isDryRun" : 1} -> dry run: tracks will not be saved into db