What is Firebase Emulator Suite?
Answer
The Firebase Emulator Suite is a set of local emulators for Firebase services that allow development and testing without touching production data or incurring production costs. Available emulators: Firestore, Authentication, Realtime Database, Cloud Storage, Cloud Functions, Hosting, Pub/Sub, Extensions. Setup: install the Firebase CLI, run firebase emulators:start, connect your app: connectFirestoreEmulator(db, "localhost", 8080); connectAuthEmulator(auth, "http://localhost:9099"). Features: (1) Emulator UI — web UI at localhost:4000 to view and edit data, trigger functions, manage users; (2) Import/export — --import=./seed-data pre-populates emulator with seed data; (3) Test isolation — each test can clear emulator data; (4) Rules testing — test security rules locally with the Rules Simulator and @firebase/rules-unit-testing library. The Emulator Suite is essential for teams who want fast iteration, complete test coverage of security rules, and zero risk of affecting production data during development.
Previous
What is FieldValue in Firestore?
Next
How do you design a scalable data model in Firestore?