https://github.com/lowsky/spotify-graphql-server-graphql-helix-envelop
spotify-server based on graphql-helix
https://github.com/lowsky/spotify-graphql-server-graphql-helix-envelop
graphql graphql-envelope graphql-helix spotify
Last synced: about 1 year ago
JSON representation
spotify-server based on graphql-helix
- Host: GitHub
- URL: https://github.com/lowsky/spotify-graphql-server-graphql-helix-envelop
- Owner: lowsky
- Created: 2022-04-21T12:45:07.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2024-10-29T22:50:35.000Z (over 1 year ago)
- Last Synced: 2024-10-30T00:47:39.254Z (over 1 year ago)
- Topics: graphql, graphql-envelope, graphql-helix, spotify
- Language: TypeScript
- Homepage: https://spotify-graphql-server-graphql-envelop-ts.vercel.app
- Size: 889 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
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](https://spotify-graphql-server-graphql-envelop-ts.vercel.app) 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 ( >=16 ) installed.
Run `yarn install`.
### run server
`yarn start` to start the graphql server, then open http://localhost:4000/
`yarn run watch` to start the graphql server which automatically restarts when any sources were changed (driven by `tsx watch`)
### run tests
`yarn test`
### print GraphQL schema idl
`yarn run printSchema`