codeforbtv / baby-equipment-exchange

MIT License
0 stars 8 forks source link

Add emulator suite support and data for use with the emulator suite for 'test' and 'development' environments #7

Closed NathanWEdwards closed 10 months ago

NathanWEdwards commented 1 year ago

The Firebase Emulator Suite package has been included in the project, however, emulator suite initialization and the README description on using the emulator suite with the project is incomplete. Performing testing and development with the emulator suite offers an alternative to accessing remote Firebase instances and is ideal for making temporary changes and when working offline.

Acceptance criterion:

NathanWEdwards commented 10 months ago

Pull request 22 introduces a script to start the Firebase Emulator Suite. Pull request 43 introduces fixes to this script and adds documentation for configuring the Firebase Emulator Suite. The documentation provides details about how to emulate Firebase Services (e.g. Auth, Firebase Storage).

npm run dev will attempt to launch the Firebase Emulator Suite with NextJs dev, if the FIREBASE_EMULATORS_IMPORT_DIRECTORY environment variable is set to an existing directory.