Skip to content

Latest commit

 

History

History
41 lines (30 loc) · 604 Bytes

README.md

File metadata and controls

41 lines (30 loc) · 604 Bytes

React-Nodejs-Graphql-Example

A simple graphql example using Reactjs and Nodejs

Example includes

  • Graphiql at express server
  • Using Apollo at Reactjs as graphql client and binding Reactjs component with graphql
  • Some graphql mutation examples

Installation

Run Your mongo

Run express server

cd server
npm install
node app.js

Run frontend react dev server

in another terminal

cd ../client
npm install
npm run dev

Go to browser and type

http://localhost:3000/graphql

Making queries using Graphiql

in browser type

http://localhost:4000/graphql