Running a build application using Firebase Emulator involves several steps. Here’s a guide to help to set up and run your application locally with Firebase Emulator:
Prerequisites
- Node.js and npm: Ensure that you have Node.js and npm installed on your machine.
- Firebase CLI: Install the Firebase CLI if you haven’t already
npm install -g firebase-tools
Steps to Run Application with Firebase Emulator
- Initialize Firebase in the Project:
- For initializing Firebase in our project, run:
firebase init
Select the services you want to use (e.g., Firestore, Functions, Hosting, etc.) and follow the prompts to set up your Firebase configuration.
Install Firebase Emulator Suite:
The Firebase Emulator Suite can be installed via npm. In the project directory, run:
npm install --save-dev firebase-tools
Start the Firebase Emulators:
To start the emulators, run:
firebase emulators:start