SPVC is a tool to track updates to every Spotify playlist you follow. No more lost playlists!
This is the backend API for the project.
- Create the file
.env
in the root directory and add Spotify api access keys.
SPOTIFY_CLIENT_ID=<your-client-id>
SPOTIFY_SECRET=<your-secret>
bundle install
rails db:create && rails db:migrate
redis-server
bundle exec sidekiq
rails server
-
Create user
POST
user[email]
anduser[password]
to/users
- Returns
JWT
-
Authenticate
- Add
Authorization
header with theJWT
as the value
- Add
-
Connect Spotify
GET /user
returns json for the user which includes the Spotify auth url