This repository is for work on the user interface(s) (UI) for the WaterTAP library.
The Python code, and the PIP requirements, are in the backend/
folder.
cd <watertap-ui-path>/backend
pip install -r requirements.txt
idaes get-extensions
Prerequisites: Node Package Manager (npm)
See the NPM install page for installation and the NPM upgrade page for upgrading to the latest version. See the NPM install page for installation and the NPM upgrade page for upgrading to the latest version.
cd <watertap-ui-path>/electron
npm install
cd <watertap-ui-path>/electron/ui
npm install
cd <watertap-ui-path>/electron
npm start
The JS spawning doesn't work on Windows, so in order to start the app there you need to start things by hand using the following commands:
- Turn off default browser opening with
$Env:Browser="none"
- From the repo root:
cd backend/app
and runuvicorn main:app --host 127.0.0.1 --port 8000 --reload &
- Next
cd ../../electron/ui
and runnpm start &
. - Finally:
cd ..
(now in 'electron' subdir) and runnpm start