Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nicmeister/graphql-nodejs
Run GraphQL queries with NodeJS and express. The openAPI used for the project: https://developer.haloapi.com
https://github.com/nicmeister/graphql-nodejs
api express express-js graphql javascript node node-js nodejs server
Last synced: 27 days ago
JSON representation
Run GraphQL queries with NodeJS and express. The openAPI used for the project: https://developer.haloapi.com
- Host: GitHub
- URL: https://github.com/nicmeister/graphql-nodejs
- Owner: NicmeisteR
- Created: 2019-12-06T08:50:57.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-11T16:12:07.000Z (almost 2 years ago)
- Last Synced: 2023-03-03T15:13:04.166Z (over 1 year ago)
- Topics: api, express, express-js, graphql, javascript, node, node-js, nodejs, server
- Language: JavaScript
- Size: 65.4 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://developer.haloapi.com).
2. Replace the below [{{ your-api-key }}](api/keys.js) with your api key in the keys file:
```js
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 test6. Command to ignore changes to the "keys.js" file.
> git update-index --assume-unchanged api/keys.js