cloud_functions
一個允許您使用 Firebase Cloud Functions 的 Flutter 外掛程式。
一個簡單的匿名群組聊天應用
一個允許您使用 Firebase Cloud Functions 的 Flutter 外掛程式。
Firebase Database 的 Flutter 插件,一個託管於雲端的 NoSQL 資料庫,可在 Android 和 iOS 客戶端之間實時同步資料,並支援離線存取。
Firebase Auth 的模擬實作。可與 `google_sign_in_mocks` 一起使用,撰寫涉及 Firebase 認證的單元測試。
^2.11.0^3.4.1^5.6.1^5.3.4^1.19.1^5.1.0^3.1.0^11.0.1^15.1.6^12.3.5{"sdk":"flutter"}^19.0.0^15.1.2^1.1.2^0.15.0^6.1.2^2.3.3^3.6.1^0.4.0{"sdk":"flutter"}^6.0.0^0.14.1^5.1.0^0.14.0{"git":"https://github.com/gnowoel/fake_firebase_database"}{"sdk":"flutter"}以下為英文專案原文快照,最新內容請造訪 GitHub。
A simple anonymous group chat app for comfortably talking to strangers. Try the web app or get the Android version from Google Play.
screenshots
:see_no_evil: Anonymous
There is no login button. You do not need to enter any personal information to participate in a chat. Just open the app and join the room.
:cyclone: Random
You don't know who you're going to meet, and you don't know where they're coming from. All you know is that people here are willing to listen.
:droplet: Ephemeral
You can open your heart and share your happiness or sadness. In an hour, everyone goes their separate ways, like strangers you met on a train.
:lock: Private
No one but the participants can see your conversations. Expired rooms are not publicly accessible, and all records will eventually be deleted.
The technical details can be found in the blog post:
Create a new Firebase project, and enable the following services:
In order to use Cloud Functions, we need to upgrade the project to the Blaze plan (pay-as-you-go).
Clone the repo:
$ git clone https://github.com/gnowoel/talktive.git
$ cd talktive
Configure FlutterFire:
$ firebase login
$ dart pub global activate flutterfire_cli
$ flutterfire configure
Configure Firebase:
$ firebase init
Select the following services:
For "Functions", select:
For "Emulators", select:
Watch and compile Cloud Functions code (from the functions directory):
$ npm run build:watch
Start Emulators Suite, and take a note of the URL for the HTTP request:
$ firebase emulators:start
Trigger the scheduler once with an HTTP request, using the URL from the previous step:
$ curl http://local/path/torequestedCleanup
Create predefined topic categories:
$ curl http://local/path/to/setupTribes
Optionally start a device simulator or emulator, for example:
$ flutter emulators --launch apple_ios_simulator
Optionally run the unit and integration tests:
$ flutter test
$ flutter test integration_test
Start the app:
$ flutter run
Deploy Security Rules for Realtime Database, Cloud Firestore and Firebase Storage:
$ firebase deploy --only database,firestore,storage
Deploy Cloud Functions (from the functions directory):
$ npm run deploy
Create predefined topic categories:
$ curl https://remote/path/to/setupTribes
Build the web release of the Flutter app:
$ flutter build web
Upload the build/web directory to your hosting service of choice.