Giter VIP home page Giter VIP logo

graphql-server's Introduction

GraphQL-Server

This repo contains basic GraphQL Server which is developed using Node.js. About GraphQL-

  1. Application layer query language
  2. Open sourced by Facebook in 2015
  3. Can be used with any type of database
  4. Ability to ask for exactly what you need and nothing more
  5. Get multiple resources in a single request

Project Plan for this repo-

  1. Build the back end server
  2. Setup Express with Express-Graphql
  3. Create schema file with queries and mutations
  4. Implement JSON-server
  5. Crud functionality
  6. Test with Graphiql

Clone this repo using git clone https://github.com/nitesh009/GraphQL-Server.git

Once you clone the repo, you need to install few dependencies- npm install express express-graphql --save npm install graphql --save npm install json-server --save npm install nodemon --save npm install axios --save

After installing above mentioned dependencies, perform below steps- cd customerbase

-Run JSON-Server (Port 3000) $ npm run json:server

-Run Server (Port 4000) $ npm run dev:server -Visit Graphiql IDE

Go to http://localhost:4000/graphql

After that you can perform any of the CRUD operation mentioned below- addCustomer:

mutation{ addCustomer(name:"XYZ",email:"[email protected]",age:21) { id, name, email } }

deleteCustomer:

mutation{ deleteCustomer(id:"3") { id, name, email } }

Please comment if you face issues while performing any kind of CRUD operation.

graphql-server's People

Contributors

nitesh009 avatar

Watchers

James Cloos avatar  avatar  avatar  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.