diff --git a/internal/ui/dist/index.html b/internal/ui/dist/index.html index 3c90e006..48d74392 100644 --- a/internal/ui/dist/index.html +++ b/internal/ui/dist/index.html @@ -4,26 +4,72 @@ canton-devkit Web UI — frontend not built - +

canton-devkit Web UI

-

This is the placeholder page. The real Vite/React UI - wasn't built, so only this committed index.html is embedded - (the JS/CSS bundle is git-ignored and produced at build time).

-

Build the frontend, then rebuild the binary:

-
make frontend && make build
-# or:  cd frontend && npm ci && npm run build  (then go build ./cmd/canton-devkit)
+

This is the placeholder page embedded at build time. + The production Vite/React bundle was not built, so only this committed + index.html is inside the binary (JS/CSS assets are + git-ignored and produced by make frontend).

+

Seeing this after make build alone is + expected for Go-only work. See CONTRIBUTING.md for the + full contributor setup.

+ +

Embed the production UI in the binary

+
make ui
+# equivalent: make frontend && make build
+ +

Develop the UI with hot reload

+

No make frontend needed — run the backend and Vite side + by side, then open port 5173:

+
# terminal 1 (repo root)
+go run ./cmd/canton-devkit localnet ui --port 7777
+
+# terminal 2
+cd frontend && npm install && npm run dev
+
+# browser: http://localhost:5173
+ +

Go-only contributors

+
make build    # → bin/canton-devkit; placeholder UI is fine