0.0.3 • Published 5 years ago

medlit-lib v0.0.3

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

Medlor Subscribe Wizard Library

The library that contains the tool for creating and maintaining medlor edl tag files for videos. Note that the library is specifically designed to support being hosted as a browser extension.

This front-end library depends on medlor-api, medlor-auth-api, and medlit-api backend for servers for graphql queries and mutations.

Install

npm install @medlit-lib

Semantic UI

This library depends on the semantic-ui-css

npm i -S semantic-ui-css

And import it in your main site's main entry point (i.e. /index.js)

import 'semantic-ui-css/semantic.min.css';

.env

The url and path to the authentication graphql server is expected in a .env file named: REACT_APP_MEDLOR_BASE_URL & REACT_APP_MEDLOR_API_PATH. For Example:

REACT_APP_MEDLOR_BASE_URL=http://localhost:3031
REACT_APP_MEDLOR_API_PATH=/graphql

Also, for social authentication to work properly, ensure that the hosting application has the following environment variables configured:

REACT_APP_FACEBOOK_APPID
REACT_APP_GOOGLE_APPID
REACT_APP_CHROME_EXTENSION_MODE

REACT_APP_CHROME_EXTENSION_MODE is true when this library is hosted in a browser extension and otherwise false.

Docs

Component documentation