notebooks/components/crud-web-apps/jupyter
Kimonas Sotirchos 9580c16791 web-apps(front): Update the common frontend library (kubeflow/kubeflow#5463)
* web-apps(front): Udate the common library

Add new components to the library. These components will enhance
* The current common table for visualizing objects
* The components we can use for a details-page for each object

Signed-off-by: Kimonas Sotirchos <kimwnasptd@arrikto.com>

* web-apps(front): Add unit tests to common lib

Fix and introduce new unit tests for most of the components in the
library. We expect the developers to always run `ng test` before any PR
to ensure that the existing functionality is not broken.

Signed-off-by: Kimonas Sotirchos <kimwnasptd@arrikto.com>

* jwa(front): Add required packages for common lib

The common library will expect extra npm modules to be installed in each
app that consumes it.

Signed-off-by: Kimonas Sotirchos <kimwnasptd@arrikto.com>
2020-12-21 05:06:25 -08:00
..
backend Initialize the Jupyter web app frontend in crud-web-apps (kubeflow/kubeflow#5332) 2020-10-27 07:45:59 -07:00
frontend web-apps(front): Update the common frontend library (kubeflow/kubeflow#5463) 2020-12-21 05:06:25 -08:00
.gitignore Refactor the JWA backend to utilize common code (kubeflow/kubeflow#5316) 2020-09-29 02:37:25 -07:00
Dockerfile Initialize the Jupyter web app frontend in crud-web-apps (kubeflow/kubeflow#5332) 2020-10-27 07:45:59 -07:00
Dockerfile.dockerignore Initialize the Jupyter web app frontend in crud-web-apps (kubeflow/kubeflow#5332) 2020-10-27 07:45:59 -07:00
Makefile Initialize the Jupyter web app frontend in crud-web-apps (kubeflow/kubeflow#5332) 2020-10-27 07:45:59 -07:00
README.md Initialize the Jupyter web app frontend in crud-web-apps (kubeflow/kubeflow#5332) 2020-10-27 07:45:59 -07:00

README.md

Jupyter web app

This web app is responsible for allowing the user to manipulate the Jupyter Notebooks in their Kubeflow cluster. To achieve this it provides a user friendly way to handle the lifecycle of Notebook CRs.

Development

Requirements:

  • node 12.0.0
  • python 3.7

Frontend

# build the common library
cd components/crud-web-apps/common/frontend/kubeflow-common-lib
npm i
npm run build
cd dist/kubeflow
npm link

# build the app frontend
cd ../../../jupyter/frontend
npm i
npm link kubeflow
npm run build:watch

Backend

# create a virtual env and install deps
# https://packaging.python.org/guides/installing-using-pip-and-virtual-environments/
cd component/crud-web-apps/jupyter/backend
python3.7 -m pip install --user virtualenv
python3.7 -m venv web-apps-dev
source web-apps-dev/bin/activate

# install the deps on the activated virtual env
make -C backend install-deps

# run the backend
make -C backend run-dev