Coder Social home page Coder Social logo

graphql-server's Introduction

GraphQL-Server, using Bookstore dummy-data and MongoDB as a database.

Important Notice: The Base Code for the Server is a modified and edited version of the GraphQL Tutorial found here: https://www.youtube.com/playlist?list=PL4cUxeGkcC9iK6Qhn-QLcXCXPQUov1U7f


HOW TO TEST (In Windows)

Requirements

Having Downloaded Node.js (in order to use npm)

Follow Steps

  1. clone the repository to a desired location of your PC, using the command in CMD: git clone repository_url (the repository url can be obtained from GitHub online clicking on the green Code Button)

  2. After cloning is completed, open the cmd again and move to the repository directory that has been created. (cd GraphQL-Server)

  3. Then, move to 'server' directory (cd server)

  4. In this directory, run the commands one by one:

    i. npm install express

    ii. npm install -g nodemon

    iii.npm install lodash

    iv. npm install mongoose

  5. that's all. to RUN THE SERVER, just run nodemon app and it should be doing good. (keep cmd open)

  6. open a browser and on the top searchbar type : http://localhost:4000/graphql

  7. To test the GraphQL server, try writing to the editor:

{
  books{
    name
    id
    author{
      name
    }
  }
}

or try some of the Queries from Queries.txt

graphql-server's People

Contributors

ioannistsirozidis 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.