@lockerstock/firebase-redux-provider
v1.1.1
Published
Wrapper for react-redux-firebase among other tools to act as a provider for the LockerStock application.
Downloads
224
Maintainers
Readme
@lockerstock/firebase-redux-provider
Wrapper around the common react, redux, and firebase components and fleshed out to include custom hooks for all data types used within the LockerStock application.
Installation
To install @lockerstock/firebase-redux-provider with yarn
:
yarn add @lockerstock/firebase-redux-provider
Setup
As of version 0.2.0
, the Firebase API keys will have to be supplied from environment variables as follows:
REACT_APP_FIREBASE_API_KEY="" REACT_APP_FIREBASE_AUTH_DOMAIN="" REACT_APP_FIREBASE_DATABASE_URL="" REACT_APP_FIREBASE_PROJECT_ID="" REACT_APP_FIREBASE_STORAGE_BUCKET="" REACT_APP_FIREBASE_MESSAGING_SENDER_ID="" REACT_APP_FIREBASE_APP_ID="" REACT_APP_FIREBASE_MEASUREMENT_ID=""
It is recommended to supply these in the CRA as .env.{NODE_ENV}.local
. Then in CI builds, supply these keys with secrets.