@gigster/module-redux-firebase-chat

1.1.12 • Public • Published

redux-firebase-chat

Role Name Email Slack
Product Owner Ryan Borker borker@gigster.com [@borker]
Maintainer Geoff Kinder geoff.kinder@gmail.com [@geoff]
Contributor Mark Miyashita mark.miyashita@gigster.com [@mark]
Contributor Simon Frid simon@gigster.com [@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

Readme

Keywords

none

Package Sidebar

Install

npm i @gigster/module-redux-firebase-chat

Weekly Downloads

0

Version

1.1.12

License

UNLICENSED

Unpacked Size

23.6 kB

Total Files

38

Last publish

Collaborators