Skip to content

Build-Week-SpotifySong4/DataScience

Repository files navigation

DataScience

Current live link: https://spotify-ml-component.herokuapp.com/

routes

index /api/v1 GET

returns a simple hello world message

get_song_by_id /api/v1/song/<track_id> GET

returns Spotify song details given a Spotify track_id

recommend_using_track_id /api/v1/recommend/<tack_id> GET

returns recommendations for songs given a Spotify track_id

setup

$ export APP_SETTINGS="ml_component.server.config.DevelopmentConfig"
$ export SECRET_KEY="change_me"
$ createdb spotify_suggester
$ pipenv install 
$ pipenv run python manage.py create_db
$ pipenv run python manage.py db init
$ pipenv run python manage.py db migrate

now you can run the application:

$ pipenv run python manage.py runserver

Want to specify a different port?

$ python manage.py runserver -h 0.0.0.0 -p 8080

Testing

$ pipenv run python manage.py test

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •