pip3 -m venv env
. env/bin/activate
pip3 install -r requirements.txt
npm install
npm run dev
This runs the application in Vite at http://localhost:5173. Note that UI bit works, but the generation part isn't running.
This builds the UI and the Python package:
make service-package
Then run the Python package which serves the generator and UI:
export PYTHONPATH=config-ui
config-ui/scripts/service
Generation should work
Build the container:
make service-package VERSION=0.0.0
and run it
podman run -i -t -p 8080:8080 localhost/config-ui:0.0.0
Go to http://localhost:8080
Branch off of environment/dev and create a pull request.
Branches have tags like fix/some-stuff, maint/update-instructions
or feature/nice-ux.
Then do a pull request onto environment/dev to test.
Pull request from your branch onto environment/dev to test at
test.config-ui.demo.trustgraph.ai.
When ready to go live, do a pull request from environment/dev
to environment/prod to go live. Don't delete the environment/dev
branch if Github offers that.
Deployment is Github actions, automatic to Cloud Run. Deployment kicks in automatically on anything with an environment tag.
Tags are:
environment/dev
environment/prod
Is in the trustgraph-templates repo. Commit to master on that repo, then come back here and deploy here.
FIXME: It appears you need to change something to get it to pick up the new version, it's not enough to just deploy the pipeline.