Skip to content

[:tada:Active] バックエンド領域:データ追加・ハードウェア認証 REST API

Notifications You must be signed in to change notification settings

inct-compost/back-firebase-functions

Repository files navigation

back-firebase-functions

Description

ハードウェアとFirebaseとの橋渡しを担うFirebase-functionsプロジェクト
カスタムトークンの生成やFirestoreへのデータ追加プログラム

Dependencies / DevDependencies

name version
firebase-admin ^9.8.0
firebase-functions ^3.14.1
devDependencies
eslint ^7.6.0
firebase-functions-test ^0.2.0
typescript ^4.8.4

Getting Started

0. Add secret key

  1. Acess to Firebase console > serviceaccounts
  2. Click "Generate new private key"
  3. Save as src > admin-sdk-token.key.json

1. Install

yarn

2. Run test server

yarn dev

Acsess to localhost:5001/research2022-5j/us-central1/[api-name]

3. Build and deploy

yarn build
yarn deploy

How to use

Send test request

I use postman desktop

About

[:tada:Active] バックエンド領域:データ追加・ハードウェア認証 REST API

Topics

Resources

Stars

Watchers

Forks