0.0.3 • Published 9 months ago

hxdrassetupload v0.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
9 months ago

HxDRAssetUpload

Description

Pocket size library to upload assets to HxDR (beta)

To build

This is the source code of an npm package. To build install and build the library. This will create a lib folder with the transpiled library.

npm install
npm run build

To test

Some test have been added that run in nodejs.

npm run test

To install

Simply install the NPM package in to your project

npm install ndbsqlite

To use

1) Define your own models extending from NDBModel

    const hxDrAsseUpload= new HxDRAssetUpload({db});
    hxDrAsseUpload.start();
    
    // ...  execute your tasks here i.e.
    const asset = new HxDRAssetUploadTask({
        assetName: assetName,
        assetId: "",
        parentFolderId: "647dc49f-4696-4660-941e-8eb4ed66dccf",
        assetType: AssetTypeEnum.OBJ_UPLOAD,
        status: HxDRUploadStatusEnum.NEW
    })
    this.hxdrAsseUpload.addNewTask(asset, files).then(value=>{
        res.json(value);
    });



   hxDrAsseUpload.stop();

Requirements.

  • Sqlite3 is used to provide the sqlite functionality
  • Express is optional and only required if you need create the REST API
0.0.3

9 months ago

0.0.2

9 months ago

0.0.1

9 months ago