firebase :
官网:https://firebase.google.com/docs
github https://github.com/firebase
- firebase 的使用流程
https://firebase.google.com/docs/admin/setup#initialize-sdk
(https://www.bilibili.com/video/BV175411n7mZ?spm_id_from=333.999.0.0)
npm install -g firebase-tools
firebase --version
firebase login—> ブラウザに遷移して、gooogleのアカウントとパスワード入力、社外コード認証が必要がある
サーバー登録 firebase login --no-localhost
firebase projexts:list
2.服务内容以及使用流程
authentication 用户认证管理 ,
cloud firestore nosql数据库服务,https://firebase.google.com/docs/firestore
realtime database 实时存储并同步数据
storage 云存储服务(文件,图片)
hosting 网站托管服务(静态,动态)
Functions : 服务区托管代码服务 (Cloud Functions for Firebase) https://firebase.google.com/docs/functions/
:https://www.bilibili.com/video/BV1vh41127ox?from=search&seid=15241627680858451091&spm_id_from=333.337.0.0
:https://firebase.google.com/products/functions
样例:https://github.com/firebase/functions-samples
npm init -y
npm install firebase-functions@latest firebase-admin@latest --save
npm install uuid-v4 --save
firebase init functions
fasebase init emulators
nano functions/package.json