| [[Angular]] | [[Flask]] | [[TypeScript]] | [[Google Cloud Platform]] | [https://www.typea.info/blog/index.php/category/firebase/ ブログカテゴリ(Firebase)] | [[Flutter]] | [[FlutterFire]] |
{{amazon|4844398997}}
==[[Firebase]]==
=====サンプル=====
*https://firebase.google.com/docs/samples/?hl=ja
==[[iOS]]==
*[https://firebase.google.com/docs/auth/ios/start?hl=ja Auth]
==[[Java]]==
*[https://firebase.google.com/docs/admin/setup?hl=ja#java サーバーに Firebase Admin SDK を追加する]
*http://softcommu-blog.com/?eid=15
*[https://mvnrepository.com/artifact/com.google.firebase/firebase-server-sdk Maven Firebase SDK]
*[https://cloud.google.com/iam/docs/creating-managing-service-account-keys サービスアカウントの作成]
*[https://www.typea.info/blog/index.php/2020/12/01/vscode_java_maven_firestore/ VSCode+Java+MavenでFirestoreにデータ登録]
==[[Android Studio]] [[Firebase]] assistant==
[[File:0494_firebase_assis.jpg]]
|}
==[[Cloud Functions for Firebase]]==
*[[Cloud Functions for Firebase]]
*[https://www.typea.info/blog/index.php/2020/08/02/firebase-cli-google-cloud-functions/ Firebase CLI プロジェクトの Google Cloud Functions へファイルをアップロードして、Google Cloud Storageへ保存するコードをTypeScriptで書く]
*[https://www.typea.info/blog/index.php/category/google-cloud-functions/ Cloud Function関連ブログ]
==[[Cloud Firestore]]==*[[Cloud Firestore]]
*https://youtu.be/2Vf1D-rUMwE
==Cloud Storage==
===CROS [https://firebase.google.com/docs/storage/web/download-files?hl=ja Webでファイルのダウンロード]===
----
以下のようなエラーが出る
<pre>
Access to XMLHttpRequest at 'https://firebasestorage.googleapis.com/v0/b/rXXXXXX.jpeg? from origin 'http://localhost:58193' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
</pre>
*cros.json
<pre>
[
{
"origin": ["*"],
"method": ["GET"],
"maxAgeSeconds": 3600
}
]
</pre>
*deploy
<pre>
gsutil cors set cors.json gs://<your-cloud-storage-bucket>
</pre>
==Firebase Hosting==
*https://firebase.google.com/docs/hosting/
==Storage==
*[https://www.typea.info/blog/index.php/2020/08/02/firebase-cli-google-cloud-functions/ Firebase CLI プロジェクトの Google Cloud Functions へファイルをアップロードして、Google Cloud Storageへ保存するコードをTypeScriptで書く]
==Sample==