0.2.0-alpha3 • Published 7 years ago
starwars-test-graphql-server v0.2.0-alpha3
Star Wars testing server
npm install starwars-test-graphql-server and npm starwars-test-graphql-server gets you a testing server on port process.env.PORT || 8080. The base data can be found in data.json and the schema in schema.graphql. Use for validating your graphql clients, writing example apps, etc.
This is mostly unchanged from it's upstream counterpart, I just wanted it bundled and published as a module with the data and schema decoupled.
Example server details:
This is a really simple GraphQL server that uses Apollo Server and GraphQL Tools to serve the Star Wars example schema from http://www.graphql.org.
Installation
Clone the repository and run npm install
git clone https://github.com/apollographql/starwars-server
cd starwars-server
npm installStarting the server
npm startThe server will run on port 8080. You can change this by editing server.js.