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
There are a couple of pitfalls to configure TypeScript and Apollo Client on Node environment such as:
So just to make the start easy.
Add .firebaserc to the project root directory to specify your Firebase project.
{
"projects": {
"default": "YOUR_FIREBASE_PROJECT_NAME"
}
}
Add Firebase Admin SDK such as YOUR-PROJECT-NAME-firebase-adminsdk-XXXX-XXXXXX.json under 'functions/config'.
% npm run test
% npm run build
% npm run serve