Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Express server + GraphQL using Apollo libs

This is the back-end that is part of the react-graphql-with-apollo-client project.

Author: Francis Rodrigues

Dependencies version

  • NPM libs
    • express@^4.16.4
    • body-parser@^1.18.3
    • cors@^2.8.5
  • react-logo React libs
    • react@^16.8.2
    • react-dom@^16.8.2
    • react-scripts@^2.1.8
  • graphql-logo GraphQL libs
    • graphql@^14.2.1
    • graphql-server-express@^1.4.0
    • graphql-tools@^4.0.4

Starting the server application

First, you need to install the npm dependencies:

~$ npm install

and then start the server application:

~$ node index.js

Express Server is running on http://localhost:4000

Your React + GraphQL application can now access the link http://localhost:4000/graphql by Apollo client 👌

Using GraphiQL tool

Now that you start successfully the server application, you can access directly the link http://localhost:4000/graphiql by browser and use the Graphiql in-browser IDE for exploring GraphQL.

Channel list:

graphiql-screenshot

Message feed with cursor:

graphiql-message-feed-screenshot

You can read more about GraphiQL here

License

MIT