QCDIS / rclone-data-mounter

Allow users to mount cloud storage
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Development

Don't forget to pull before starting work.

Summary

  1. Create conda venv
  2. Install requirements in conda
  3. Install nodejs dependencies
  4. make build-frontend
  5. make build-frontend && make install-ui && make link-ui
  6. make install-backend
  7. jupyter lab build
  8. Restart jupyter jupyter lab --debug

Create conda venv

Install Requirements:

Install Anaconda from these instructions: https://linuxize.com/post/how-to-install-anaconda-on-ubuntu-20-04/

Close the terminal and start a new one to activate conda.

Create and activate conda environment:

conda create -n jupyterlab  python=3.9 

Or

conda env create -f environment.yml
conda activate rclone-data-mounter

Install requirements in conda

conda install jupyterlab nodejs yarn
conda install -c conda-forge typescript 

Clone project:

git clone https://github.com/QCDIS/rclone-data-mounter.git

Create and checkout branch:

cd NaaVRE
git branch <BRANCH_NAME>
git checkout <BRANCH_NAME>

Go to the project folder and install nodejs dependencies :

npm install lerna --force
npm install --force

Build the backend and frontend:

npx lerna run build --scope @jupyter_vre/core
npx lerna run build --scope @jupyter_vre/components
make install-backend && make build-frontend && make install-ui && make link-ui

Build the extension and start a jupyterlab instance:

jupyter lab build && jupyter lab --debug --watch

Build wheel file for release:

make release

Remove componetnts

make purge

First uninstall all the components:

make uninstall-ui && make unlink-ui

Then delete the relevatnt folders i.e. vre-menu

Next make install the UI compontents

make build-frontend && make install-ui