-
Don't use Windows and install Java 12+.
-
Install the Firebase CLI
curl -sL firebase.tools | bash
- Login to Firebase
firebase login
It'll ask you:
? Allow Firebase to collect CLI and Emulator Suite usage and error reporting information?
Just say, "NO!"
- Initialize the Firebase project
firebase init
Select Firestore and Emulators. Press enter to select default options. Then select authentication and firestore with spacebar and press enter.
- Select the following options
? Which Firebase CLI features do you want to set up for this folder? Press Space to select features, then Enter to confirm your choices. Functions: Configure and deploy Cloud Functions
? What language would you like to use to write Cloud Functions? JavaScript
? Do you want to use ESLint to catch probable bugs and enforce style? No
? Do you want to install dependencies with npm now? Yes
- Install the Firebase Emulator
firebase setup:emulators:firestore
- Start the Firebase Emulator
npm run firebase