1.0.4 • Published 4 years ago

fe-demo-widget v1.0.4

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

fe-demo-widget

A simple widget using NCR Digital Banking APIs

NPM JavaScript Style Guide

Create a new React App (Skip if React already installed)

npx create-react-app my-app
cd my-app

Install the package

npm install --save fe-demo-widget

## Install dependencies
npm install

Create .env file

Create a .env file in the root folder and fill in the variables. Do not use any quotes or semicolon at the end of line.

REACT_APP_TOKEN_KEY=

REACT_APP_TOKEN_KEY_ALERTS=

REACT_APP_USERNAME=

REACT_APP_PASSWORD=

REACT_APP_INSTITUTIONID=

Add proxy in package.json

Add the following line in package.json file.

"proxy": "https://api.ncr.com/digitalbanking",

Usage

import  React from  'react';
import { DemoWidget } from  'fe-demo-widget';
import  'fe-demo-widget/dist/index.css';

function App() {
  return (
	<div>
	  <DemoWidget/>
	</div>
  )
}

License

MIT © mi185073