- Run
npm installto install dependencies. - Edit
src/firebase_config.tsto fill out yourapiKeyandprojectId(not required if you only want to use the Firestore emulator). - Edit
src/run_the_test.tsto run whatever code you want to run.
- Run
npm run buildto generate the compiled JavaScript. - Open
index.htmlin a web browser, and click the "Run Test" button.
- Run
npm run runto 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