- Run
npm install
to install dependencies. - Edit
src/firebase_config.ts
to fill out yourapiKey
andprojectId
(not required if you only want to use the Firestore emulator). - Edit
src/run_the_test.ts
to run whatever code you want to run.
- Run
npm run build
to generate the compiled JavaScript. - Open
index.html
in a web browser, and click the "Run Test" button.
- Run
npm run run
to run the code in Node on the command line.
To connect to the Firestore emulator, specify -e
.
To enable Firestore debug logging, specify -v
.
Example:
npm run run -- -e -v
cd ~/firebase-js-sdk/packages/firestore
yarn build:debug
yarn pack # this resulted in a tar file (e.g. firebase-firestore-v3.4.4.tgz)
cd ~/firestore-team/v9web
npm install firebase-firestore-v3.4.4.tgz