Skip to content

Commit

Permalink
README追加
Browse files Browse the repository at this point in the history
  • Loading branch information
keinuma committed Jan 2, 2020
1 parent c5c0624 commit d17edc8
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# 概要
Google Cloud Functions for Firebase を使用した Apollo Serverの実装サンプル

# 環境構築
## Cloud Functions
### 認証情報を設定する
Firebase CLIをインストールし、ログインをする

```sh
$ firebase login
```

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

### 依存モジュールインストール
以降は `functions/` ディレクトリ配下で実施する

```sh
$ cd functions
$ npm install
```

### Apollo Serverの起動

```sh
$ npm run serve
```

### Google Cloud Functions for Firebaseへデプロイ

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

0 comments on commit d17edc8

Please sign in to comment.