https://github.com/logisticinfotech/nodejs-graphql-subscription-reactjs-demo
NodeJs Graphql Subscription implementation with Mysql database and reactjs apollo client as front end
https://github.com/logisticinfotech/nodejs-graphql-subscription-reactjs-demo
demo-app golang graphql mysql-database nodejs nodejs-graphql-subscription reactjs reactjs-apollo-client subscription
Last synced: 4 months ago
JSON representation
NodeJs Graphql Subscription implementation with Mysql database and reactjs apollo client as front end
- Host: GitHub
- URL: https://github.com/logisticinfotech/nodejs-graphql-subscription-reactjs-demo
- Owner: logisticinfotech
- Created: 2018-09-29T12:20:16.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-23T21:38:14.000Z (about 7 years ago)
- Last Synced: 2025-02-21T22:32:36.312Z (11 months ago)
- Topics: demo-app, golang, graphql, mysql-database, nodejs, nodejs-graphql-subscription, reactjs, reactjs-apollo-client, subscription
- Language: JavaScript
- Homepage: https://www.logisticinfotech.com/blog/graphql-subscription-golang-reactjs/
- Size: 242 KB
- Stars: 0
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://www.logisticinfotech.com/blog/graphql-subscription-golang-reactjs/) And React Part 2 [here](https://www.logisticinfotech.com/blog/react-apollo-client-subscription/) 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](https://www.logisticinfotech.com/blog/graphql-subscription-golang-reactjs/) And React Part 2 [here](https://www.logisticinfotech.com/blog/react-apollo-client-subscription/)