learnwithgurpreet / expressjs-graphql

ReactJS App with GraphQl server setup

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GraphQl Service with ExpressJS

This example explains you usage of GraphQl with ExpressJS services, later you can use the same setup with any other platform (Eg: Vue.js, AngularJS). mLabs is being used to store documents.

Architecture Diagram

graphql_server

Libs/Frameworks

  • ExpressJS
  • ExpressJS GraphQl
  • Mongoose

Installation guide

$ npm install
# Create a .env file on root with following secrets:
SECRET_KEY=YOUR_SUPER_SECRET_KEY_FOR_JWT

$ npm start
Kudos, you are all set with graphQl server.
Note: Default port is 3000 and end point is localhost:3000/graphql