keinuma / apollo-firebase-functions-sample

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

概要

Google Cloud Functions for Firebase を使用した Apollo Serverの実装サンプル

環境構築

Cloud Functions

認証情報を設定する

Firebase CLIをインストールし、ログインをする

$ firebase login

コンソールもしくは管理者からサービスアカウントを取得する

依存モジュールインストール

以降は functions/ ディレクトリ配下で実施する

$ cd functions
$ npm install

Apollo Serverの起動

$ npm run serve

Google Cloud Functions for Firebaseへデプロイ

$ npm run deploy
or
$ firebase deploy --only functions

About


Languages

Language:TypeScript 100.0%