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
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
in browser type
http://localhost:4000/graphql