Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lowsky/spotify-graphql-server
A simple graphql server for spotify data, see blog
https://github.com/lowsky/spotify-graphql-server
graphql graphql-server spotify
Last synced: 6 days ago
JSON representation
A simple graphql server for spotify data, see blog
- Host: GitHub
- URL: https://github.com/lowsky/spotify-graphql-server
- Owner: lowsky
- Created: 2016-11-29T14:15:45.000Z (about 8 years ago)
- Default Branch: main
- Last Pushed: 2024-12-24T13:34:08.000Z (22 days ago)
- Last Synced: 2025-01-02T01:11:40.961Z (13 days ago)
- Topics: graphql, graphql-server, spotify
- Language: JavaScript
- Homepage: https://blog.codecentric.de/en/2017/01/lets-build-spotify-graphql-server/
- Size: 805 KB
- Stars: 58
- Watchers: 6
- Forks: 18
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-rainmana - lowsky/spotify-graphql-server - A simple graphql server for spotify data, see blog (JavaScript)
README
# spotify-graphql-server
This demonstrates how to build a GraphQL server which fetches data from an external API (Spotify),
see [german blog post](https://blog.codecentric.de/2017/09/graphql-mit-spotify-teil-1-server) or
[english blog post](https://blog.codecentric.de/en/2017/01/lets-build-spotify-graphql-server)~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](https://developer.spotify.com/documentation/general/guides/authorization/app-settings/).
Then create an [.env](./.env) file with the generated token, based on the example [.env.example](./.env.example) file.Have a modern `node.js` version ( >=14 ) installed.
Run `yarn install`.
### run server
`yarn start` to start the graphql server, then open http://localhost:4000/
`yarn watch` to start the graphql server which automatically restarts when any sources were changed (driven by `nodemon`)
### run tests
`yarn test`
### print GraphQL schema idl
`yarn run printSchema`