「Cloud Functions」の版間の差分
ナビゲーションに移動
検索に移動
(→ローカル実行) |
(→ローカル実行) |
||
| 7行目: | 7行目: | ||
===ローカル実行=== | ===ローカル実行=== | ||
| + | *Firebase エミュレータを呼び出す | ||
| + | **package.json で定義された、firebase emulators:start を実行 | ||
| + | *https://firebase.google.com/docs/functions/local-emulator | ||
<pre> | <pre> | ||
| + | $ npm install -g firebase-tools | ||
$ cd functions | $ cd functions | ||
$ npm run serve | $ npm run serve | ||
</pre> | </pre> | ||
| − | + | ===[[Express]]と統合=== | |
| − | + | *https://taroosg.io/cloud-functions-express | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | * | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
2020年10月30日 (金) 05:25時点における版
| Google Cloud Platform | Firebase |
Cloud Functions
- Cloud Functions for Firebase
- Firebase CLI プロジェクトの Google Cloud Functions へファイルをアップロードして、Google Cloud Storageへ保存するコードをTypeScriptで書く
- Cloud Function関連ブログ
- Firebase関連ブログ
ローカル実行
- Firebase エミュレータを呼び出す
**package.json で定義された、firebase emulators:start を実行
$ npm install -g firebase-tools $ cd functions $ npm run serve
Expressと統合
© 2006 矢木浩人