-
First, install Firebase Tools.
-
Then, clone fireflutter-firebase
git clone https://github.com/thruthesky/fireflutter-firebase- Install node modules for firestore rules and indexes which works in root folder.
cd fireflutter-firebase
npm i- Install node modules for cloud functions which works in functions folder.
cd functions
npm i
- To test, run the Functions emulator
firebase emulators:start --only functions- Then run the test,
- Get
firebase-service-account-key.jsonand save it under root folder(the same folder where .firebaserc resides). Note thatService Admin Keyis only needed for testing(at this time). Do not expose it to public.
- Get
cd functions
npm run test:in-app-purchase