Skip to content

learnwithgurpreet/expressjs-graphql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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