Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lowsky/spotify-graphql-server-graphql-yoga
spotify-server based on graphql-yoga
https://github.com/lowsky/spotify-graphql-server-graphql-yoga
Last synced: about 1 month ago
JSON representation
spotify-server based on graphql-yoga
- Host: GitHub
- URL: https://github.com/lowsky/spotify-graphql-server-graphql-yoga
- Owner: lowsky
- Created: 2023-02-12T12:37:03.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-29T23:08:35.000Z (3 months ago)
- Last Synced: 2024-10-30T01:47:56.698Z (3 months ago)
- Language: TypeScript
- Homepage: https://spotify-graphql-server-graphql-yoga.vercel.app
- Size: 1.05 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 12
-
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`