A simple graphql server for spotify data, see blog
Clone or download

README.md

spotify-graphql-server

Greenkeeper badge

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 and adapt the [./.env.example] file.

Install any node.js >= 8, with support for async/await.

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