vemba-uploader-ui

0.1.42 • Public • Published

VEMBA UPLOADER 2 UI REACT COMPONENT

This is React Component from Vemba Corp. for Video Upload functionality.

Maintainers

Arunesh Presil Harsha

Recommended Browsers

Google Chrome Morzilla Firefox Apple Safari all latest.

Installation

npm install vemba-uploader-ui

Usage

Using as NPM Package

1 . Importing the Vemba Uploader Component

import VembaUploaderUI from 'vemba-uploader-ui'

2 . Render the element

ReactDOM.render(<VembaUploaderUI props={value} />, document.getElementById('element'));

3 . Expected props to render the component.

- partnerId   : Integer (associated Partner ID) eg. '379'
- apiUrl      : String Base url of Vemba Backend Service Deployment eg. (https://api-staging.vemba.io)
- apiToken    : String Login Token of the Partner.

Optional (Recommended)

- isUploaderEnabled   : Boolean (true/false) to enable/disable video upload functionality. Although default is readonly mode to view partner uploaded Videos.

Local Development set up

1 . Standalone with (Hot Reload)

- Clone the repo
- CD to ```/devops```
- Run ```make mount```
- RUN ```make deploy``` (Deploys to local Kubernetes Cluster)
- Goto any recommended Browser and navigate as [Uploader 2 Homepage](http://localhost:4000) should load the home page.

Git Submodule (sharedassets) - this step is included in 'make deploy' now

https://git-scm.com/book/en/v2/Git-Tools-Submodules

##To include the submodule in an existing repo

  1. Navigate to the src/asssets/folder and in the terminal, enter:

*git submodule add https://bitbucket.org/vembainc/sharedassets.git

  1. This will create the empty sharedasssets folder and to import files

*git submodule init

then

git submodule update

Updates

Stay tuned. Comming shortly!!

Package Sidebar

Install

npm i vemba-uploader-ui

Weekly Downloads

1

Version

0.1.42

License

ISC

Unpacked Size

7.11 MB

Total Files

4

Last publish

Collaborators

  • arunesh_razor