Coder Social home page Coder Social logo

graph-ql's Introduction

Building a GraphQL Server

NOTE: To test different databases there are different schema files and in server.js only one is being used and rest are commented.

Connecting GraphQL Server with various types of databases:

  1. Harcoded Data
  2. JSON Server
  3. MySQL DB - Working on it
  4. Mongo DB - Working on it

Pre-Requisites:

  1. Node should be installed and running

Commands that I used on windows CMD for installs:

npm init
npm install express express-graphql nodemon graphql --save
node server.js
npm run dev:server
npm install json:server axios --save
npm run json:server

Some of the Frameworks installed above:

  1. Express: Cool abstract framework layer that works on top of node.js HTTP Server to keep things neat and easy for us.
  2. Express-GraphQL: Mainly used for graphiql view that can be launched on web browser.
  3. Nodemon: Running the server once and then nodemon handles the part of reflecting all the saved changes done in the editor.
  4. GraphQL: A query language created by Facebook. Great for mobile devices as it reduces the bandwidth with its great to the point data given out implmentation.
  5. JSON Server: JSON Server quick back-end for prototyping and mocking up and running in seconds.
  6. Axios: Easy way to call REST methods - GET, POST, PATCH, DELETE and more

graph-ql's People

Contributors

harsh91 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.