Testing the use of Spotify's Web API, wrapping it in GraphQL. Open Source project proof of concept.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
bin
config
db
lib
log
public
test
.gitignore
Gemfile
Gemfile.lock
README.md
Rakefile
config.ru

README.md

Spotless API Project

Experiment with the Spotify API using GraphQL in a Ruby environment!

Image

Getting Started

1. Clone the repository

git clone https://github.com/DrianHillman/Spotless-API.git or

git clone git@github.com:DrianHillman/Spotless-API.git

2. Register a new app with Spotify

3. Create application.yml

  • Create a new file titled application.yml within app > config

touch app/config/application.yml

  • Based on application.example.yml, enter the variables for SPOTIFY_CLIENT_ID: & SPOTIFY_CLIENT_SECRET: provided by your Spotify developer account

4. Manage your Seed Data

Open db > seeds.rb to manage your data pulled into the application

Update the first line to be sure that your Spotify user data is pulled into the application

user = RSpotify::User.find('YOUR_USERNAME_HERE')

*This step to change later

5. Run locally

Run bundle install

Run rails s to start the rails server

🎉 Navigate to http://localhost:3000/graphiql to view your data through GraphQL!

FAQs

How do I use GraphQL?

Check out the GraphQL documentation here!

How do I use Graphiql?

This app uses the graphiql-rails gem, check out its documentation here!