Skip to content

Run GraphQL queries with NodeJS and express. The openAPI used for the project: https://developer.haloapi.com

Notifications You must be signed in to change notification settings

NicmeisteR/GraphQL-NodeJS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GraphQL-NodeJS

Run GraphQL queries with NodeJS and express. The openAPI used for the project: https://developer.haloapi.com

Setup

  1. Get a API key from HaloAPI.

  2. Replace the below {{ your-api-key }} with your api key in the keys file:

    module.exports.config = {
        halo: {
            desc: 'ocp-apim-subscription-key',
            key: '{{ your-api-key }}'
        }
    }
  3. Open up a terminal and use command:

    npm i

  4. Once the packages are installed run the following command to start the express server:

    npm start

  5. Then run the below and it will return a queried object in the terminal and write it to the response folder:

    npm test

  6. Command to ignore changes to the "keys.js" file.

    git update-index --assume-unchanged api/keys.js

Releases

No releases published

Packages

No packages published