Skip to content

Latest commit

 

History

History
52 lines (35 loc) · 1.09 KB

firebase.md

File metadata and controls

52 lines (35 loc) · 1.09 KB

Firebase Emulator Setup

Setup

  1. Don't use Windows and install Java 12+.

  2. Install the Firebase CLI

curl -sL firebase.tools | bash
  1. 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!"

  1. 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.

  1. 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
  1. Install the Firebase Emulator
firebase setup:emulators:firestore
  1. Start the Firebase Emulator
npm run firebase