https://github.com/kamaubrian/node-graphql-tutorial
A Simple graphql tutorial on node js with grapqhl and firebase
https://github.com/kamaubrian/node-graphql-tutorial
firebase firebase-database firestore graphql node
Last synced: 2 months ago
JSON representation
A Simple graphql tutorial on node js with grapqhl and firebase
- Host: GitHub
- URL: https://github.com/kamaubrian/node-graphql-tutorial
- Owner: kamaubrian
- License: mit
- Created: 2019-02-18T18:00:40.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-27T07:49:03.000Z (over 7 years ago)
- Last Synced: 2025-10-10T00:37:29.587Z (9 months ago)
- Topics: firebase, firebase-database, firestore, graphql, node
- Language: JavaScript
- Homepage: https://us-central1-node-grapqhl-api.cloudfunctions.net/grapqhlapi/api/v1/graphql
- Size: 35.2 KB
- Stars: 2
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/mtotodev05/node-graphql-tutorial)
# node-graphql-tutorial
A Simple graphql tutorial on node js with grapqhl and firebase
## Installation
1. Clone the repo
2. `under api, create config/ then put your service-account.json, `
3. Run `npm install`
4. Run `npm run start`
5. `http://localhost:3000/api/v1/graphql`
6. Use the provided graphiql interface provided to test the below requests.
### Sample Requests
```
/api/v1/graphql
Fetching posts:
query{
posts {
description
title
author
}
}
Creating Posts:
mutation {
createPost(postInput:{author:"Brian Kamau",title:"Out with you",description:"It has been real",date:"24th Nov 2018"}){
title
description
}
}
```
## Running Tests
```
yarn test
or
npm test
```
For a detailed tutorial, checkout this [wiki](https://github.com/mtotodev05/node-graphql-tutorial/wiki/node-graphql-firestore-api-tutorial).