Skip to content

GraphQL Client for Firebase Cloud Functions with TypeScript + Jest

Notifications You must be signed in to change notification settings

goodpic/firebase-graphql-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Firebase GraphQL Client Boilerplate

This is a starter template for the GraphQL Client to run on the Cloud Functions for Firebase.

Using:

  • Node 8
  • TypeScript
  • Apollo Client (GraphQL)
  • Jest

Why?

There are a couple of pitfalls to configure TypeScript and Apollo Client on Node environment such as:

So just to make the start easy.

Configure

firebaserc

Add .firebaserc to the project root directory to specify your Firebase project.

{
  "projects": {
    "default": "YOUR_FIREBASE_PROJECT_NAME"
  }
}

adminsdk JSON

Add Firebase Admin SDK such as YOUR-PROJECT-NAME-firebase-adminsdk-XXXX-XXXXXX.json under 'functions/config'.

Jest test

% npm run test

Build

% npm run build

Local server (emulation)

% npm run serve

About

GraphQL Client for Firebase Cloud Functions with TypeScript + Jest

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published