Navigation Menu

Skip to content

logisticinfotech/nodejs-graphql-subscription-reactjs-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nodejs-graphql-subscription-reactjs-demo

NodeJs Graphql Subscription implementation with Mysql database and reactjs apollo client as front end

You can find step by step guide for Golang Part 1 here And React Part 2 here to understand this demo properly.

for nodejs graphql-server-express and subscriptions-transport-ws used.

for reacjs applo-client is used.

Preview

Import Database

Import database gqlgenreact.sql file and change connection settings in express/src/resolvers.js file

Run express server

  cd express
  npm install
  npm start

Run reactjs code

  cd react
  npm install
  npm start

Urls to check on with this

React Server: http://localhost:3000/graphiql

Graphql Playground: http://localhost:8090/graphiql

Further help

Checkout full blog for Golang Part 1 here And React Part 2 here