1.9.6 • Published 2 years ago

chris-upload v1.9.6

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

cujs

Is a reusable JS module to upload local files to CUBE using Chris API

Install in your project using npm

.. code-block:: bash

$npm install chris-upload@1.1.0

Import and use in your JS app

.. code-block:: bash

import cujs from 'chris-upload';

// Create an object var cu = new cujs();

// Login to CUBE // Example: // -- CUBEurl : http://localhost:8000/api/v1/ // -- username: <user_name_in_CUBE> // -- password: <user_pwd_in_CUBE> cu.login(CUBEurl,username,password);

// Upload files cu.uploadFiles(files);

// Download files as zip cu.downloadFiles(feedId);

// Save files to disk cu.saveFiles(feedId,saveDir);

// Logout cu.logout();

TLDR: To run this app:

Clone from GitHub

.. code-block:: bash

git clone https://github.com/FNNDSC/cujs

Parcel is a tool to bundle and serve code. Install parcel-bundler as a dev dependency:

.. code-block:: bash

npm install parcel-bundler@1.12.5 --save-dev

Now, verify that your project is working :

.. code-block:: bash

$npm run dev

Then navigate to http://localhost:1234/ with your browser. Ensure you have a local CUBE running by following the steps here: https://github.com/FNNDSC/ChRIS_ultron_backEnd#tldr

1.9.6

2 years ago

1.9.5

2 years ago

1.9.4

2 years ago

1.9.1

2 years ago

1.8.2

2 years ago

1.9.0

2 years ago

1.8.1

2 years ago

1.8.0

2 years ago

1.8.9

2 years ago

1.8.8

2 years ago

1.7.9

2 years ago

1.8.7

2 years ago

1.7.8

2 years ago

1.8.6

2 years ago

1.7.7

2 years ago

1.8.5

2 years ago

1.7.6

2 years ago

1.9.3

2 years ago

1.8.4

2 years ago

1.9.2

2 years ago

1.8.3

2 years ago

1.7.3

2 years ago

1.6.4

2 years ago

1.7.2

2 years ago

1.6.3

2 years ago

1.7.1

2 years ago

1.6.2

2 years ago

1.7.0

2 years ago

1.6.1

2 years ago

1.6.0

2 years ago

1.7.5

2 years ago

1.5.7

2 years ago

1.7.4

2 years ago

1.6.5

2 years ago

1.5.5

2 years ago

1.5.4

2 years ago

1.5.3

2 years ago

1.5.2

2 years ago

1.5.1

2 years ago

1.5.0

2 years ago

1.4.0

2 years ago

1.3.1

2 years ago

1.5.6

2 years ago

1.2.0

2 years ago

1.1.0

2 years ago