| |
|---|
| setup | firebase login |
| list projects | firebase projects:list |
| troubleshooting | firebase logout
firebase login
firebase login --reauth |
| deploy functions | firebase deploy --only functions |
|
|---|
firebase emulators:start |
firebase emulators:start --export-on-exit=emulator-export --import=emulator-export |
firebase emulators:start --import=emulator-export |
firebase emulators:export emulator-export2\ |
dart pub global activate flutterfire_cli # ONCE
flutterfire configure
flutter pub add firebase_core cloud_firestore
- Powershell for windows.
- Dont use tokens, use service file from:
|
|---|
https://console.firebase.google.com/project/flipdare-73df9/settings/serviceaccounts/adminsdk |
https://console.firebase.google.com/project/flipdare-test/settings/serviceaccounts/adminsdk |
OLD WAY firebase login:ci --no-localhost
NEW WAY export GOOGLE_APPLICATION_CREDENTIALS=/myroot/admin/firebase/flipdare-73df9-firebase-adminsdk-scnbt-bc6370b8d7.json
| |
|---|
| Start | firebase emulators:start --project demo-test |
| Start with import/export | firebase emulators:start --export-on-exit=emulator-export --import=emulator-export |
| Start with import | firebase emulators:start --import=emulator-export |
| Scripting | $env:FIRESTORE_EMULATOR_HOST=localhost:8080
export FIRESTORE_EMULATOR_HOST=localhost:8080 |
| Export | firebase emulators:export emulator-export2\ |
http://localhost:5001/flipdare-73df9/us-central1/app/email_keycode?uid=1111111111&email=dklenowski@gmail.com&api_key=A2dOJhDqFRri0dohldWaJ1HbPy1QFlKnCLpgHZaSD
| |
|---|
| Installing nodejs packages | npm install ... in the app directory. |
| Upgrading nodejs | apt-get remove nodejs |
| curl -fsSL https://deb.nodesource.com/setup_current.x | sudo -E bash - |
| apt-get install nodejs -y |