Skip to content

emadalam/graphql-demo

Repository files navigation

graphql-demo

A demo GraphQL application server.

Getting Started

Assuming that you have nodejs and npm installed on your machine, do the following to get started:

$ npm install                           # Install dependencies
$ npm run build                         # Builds the app
$ npm start                             # Starts GraphQL app server

GraphiQL Interface

Once the server has been started the GraphiQL interface can be accessed at http://127.0.0.1:3001/graphiql to play around with the server.

Subscription Server

The subscription server is available over websocket and can be accessed at ws://127.0.0.1:5000/ to subscribe for real time updates. Please refer to the generated schema docs to check for the available subscriptions.

Development

$ npm run dev

Starts the GraphQL server and watch for changes inside graphql-server/src folder. By default the webserver starts at port 3001 and can be accessed at http://127.0.0.1:3001/graphql.

Accessing Presentation

$ npm run presentation

Navigate to http://127.0.0.1:8515 to access the presentation slides.

License

MIT License.

Releases

No releases published

Packages

No packages published