Today's deliverable is a link to your GitHub repository with at least one fully implemented GET
and POST
action in app/controllers/top_tracks_controller.rb
.
- Fork this GitHub Repo.
- Clone your new fork locally and navigate to it in your shell.
- Run
rails db:migrate
to apply initial migrations. - Run
rails server
and navigate to the [http://localhost:3000/top_tracks][http://localhost:3000/top_tracks] page. - Click the
Sign in with Spotify
button to authenticate with OAuth. - Open
app/controllers/top_tracks_controller.rb
. All changes should be made in this file! - Review the
rspotify
documentation and consider how you would fill in the actions in your controller. For example, can you create an action that would find information about a certain track? - Create the API! It can return either a JSON response, or a Rails view containing the data.
- Add, commit, and push your changeset to GitHub.
- If you finish early, add more features! Example stretch challenge: can you create an action that returns recommendations based on the already provided track data?
- You must run this locally and serve the website over port
3000
to ensure access to the Spotify Web API.