This repository is for work on the user interface(s) (UI) for the WaterTAP library.
The following steps assume that:
conda
is already installed and configured- This repository (i.e. the WaterTAP UI repository, https://github.com/watertap-org/watertap-ui) has been cloned locally and the working directory is set to the root of the repository
Run the following command to create and activate a new Conda environment named watertap-ui-env
:
conda env create --file environment.yml && conda activate watertap-ui-env
This will install the correct runtime versions of both the backend (Python) and frontend (JavaScript/NodeJS/Electron) portions of the UI, as well as the backend (Python) dependencies.
Run the following command to install the JavaScript dependencies:
npm --prefix electron clean-install
idaes get-extensions --verbose
By default, Step 1 above will install the watertap
Python package from the current main
branch of the watertap-org/watertap repository.
To use the WaterTAP UI with the development version of WaterTAP, run the following steps:
If you already have a local clone of the WaterTAP repository, you can skip this step.
Otherwise, run the following command to create a local clone of the WaterTAP repository in a directory of your choice, e.g. /path/to/my/watertap
:
git clone https://github.com/watertap-org/ /path/to/my/watertap
conda activate watertap-ui-env
pip uninstall --yes watertap
The following assumes that the watertap-org/watertap
repository has been cloned to a directory named /path/to/my/watertap
.
bash -c "cd /path/to/my/watertap && pip install -r requirements-dev.txt"
conda activate watertap-ui-env
cd <watertap-ui-path>/electron
npm run app-start
cd <watertap-ui-path>/electron
npm run electron-start
To run the Python tests, make sure you have the appropriate version of watertap in your conda env. Then from the repository root directory run:
pytest backend/tests
Last merged PR: : graph_settings-issue53