Skip to content
Branch: master
Go to file
Code

Latest commit

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
bin
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

spotify-graphql-server

This demonstrates how to build a GraphQL server which fetches data from an external API (Spotify), see german blog post or english blog post

Use the Live Demo as a playground for graphql queries.

Get started

prerequisites

For running this example locally, you must register your own application at spotify. Then create an .env file with the generated token, based on the example .env.example file.

Have a modern node.js version ( >=8 ) installed.

Run npm install.

run server

npm start to start the graphql server, then open http://localhost:4000/

npm run watch to start the graphql server which automatically restarts when any sources were changed (driven by nodemon)

run tests

npm test

print GraphQL schema idl

npm run printSchema

Analytics

You can’t perform that action at this time.