@lockerstock/firebase-redux-provider

Wrapper for react-redux-firebase among other tools to act as a provider for the LockerStock application.

Usage no npm install needed!

<script type="module">
  import lockerstockFirebaseReduxProvider from 'https://cdn.skypack.dev/@lockerstock/firebase-redux-provider';
</script>

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.

npm version build npm downloads

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.