0.1.0 • Published 4 years ago

calvium-treatment-base-lib v0.1.0

Weekly downloads
-
License
-
Repository
-
Last release
4 years ago

#wtc-treatment-base-lib

Shared library for WTC Treatments using React, on the BrightSign device.

##Setting up an app to use this library

At present this library isn't on npm. See DEVELOPER_SETUP for help.

###Manual Steps

  1. Edit your React App's public/index.html file

Insert this into the section:

    <script src="%PUBLIC_URL%/brightSign_sync.js"></script>

This loads the brightsign-specific Node.js sync code as an uncompiled JavaScript file. This is needed for the Content Sync feature

Note: This JS file and a BrightSign autorun.brs file is copied over to the public directory during this packages npm postinstall step. Note: The autorun.brs file will launch the index.html file on the BrightSign Device

  1. Set up authentication details for accessing content.

The application that uses this library needs to have a .env file at the root containing the following keys:

#!/usr/bin/env bash

REACT_APP_IDENTITY_POOL_ID=XXXX
REACT_APP_REGION=XXXX
REACT_APP_APPLICATION_ID=XXXX
REACT_APP_APPLICATION_KEY=XXXX
REACT_APP_API_URL=XXXX

See the built-in help in the CMS for more details

##Feature Reference

See REFERENCE

0.1.0

4 years ago