vemba-uploader-ui
v0.1.42
Published
This contains the Vemba Uploader 2.0 UI Components
Downloads
9
Maintainers
Readme
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
- Navigate to the src/asssets/folder and in the terminal, enter:
*git submodule add https://bitbucket.org/vembainc/sharedassets.git
- This will create the empty sharedasssets folder and to import files
*git submodule init
then
git submodule update
Updates
Stay tuned. Comming shortly!!