@gigster/module-redux-firebase-chat
v1.1.12
Published
Role | Name | Email | Slack ---- | ---- | ----- | ----- *Product Owner* | Ryan Borker | [[email protected]](mailto:[email protected]) | [@borker] *Maintainer* | Geoff Kinder | [[email protected]](mailto:[email protected]) | [@geoff] *Contributo
Downloads
47
Readme
redux-firebase-chat
Role | Name | Email | Slack ---- | ---- | ----- | ----- Product Owner | Ryan Borker | [email protected] | [@borker] Maintainer | Geoff Kinder | [email protected] | [@geoff] Contributor | Mark Miyashita | [email protected] | [@mark] Contributor | Simon Frid | [email protected] | [@fridiculous]
Overview
This module adds the redux layer to support realtime chat backed by firebase.
Dependencies
The following npm packages are required on the API:
npm | version ---- | ----- module-loopback-authentication | ^1.1.0 module-loopback-firebase-authentication | ^1.1.0
Usage
- name: redux-firebase-chat
location: @gigster/redux-firebase-chat
spec: {}
Tests
Module tests are defined using a test/scenarios.yaml
file. This file defines the set of example gigs that we generate as part of integration testing. To run all tests, run yarn test
at the root of this module.
Each scenario is generated in test/scenario/<name>
which you can then cd
into and run the actual app. For a scenario called default
, this is done via:
To run, add an .env
file to the test/scenario/default/web
directory, with the following variables:
NODE_PATH=src/
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=""
Then run:
cd test/scenario/default
yarn install
# Run tests.
yarn test
# Start the app.
yarn start