diff --git a/.base44/environment.json b/.base44/environment.json new file mode 100644 index 0000000..97ddfa6 --- /dev/null +++ b/.base44/environment.json @@ -0,0 +1,7 @@ +{ + "previewPort": 3000, + "healthPath": "/", + "startCommand": "docker compose -f docker-compose.base44.yml up -d", + "secrets": [], + "verifiedAtCommit": "0f056184cab70e27f6343afb6d0d67f546e63f9d" +} \ No newline at end of file diff --git a/AGENTS.md b/AGENTS.md new file mode 100644 index 0000000..df025f7 --- /dev/null +++ b/AGENTS.md @@ -0,0 +1,31 @@ +# jst — Base44 dev notes + +## What this is +A Cargo workspace (`crates/cli`, `crates/server`, `crates/shared`) plus a static +Vite-served website in `docs/` (marketing page + in-browser WASM shell demo). +The browser demo proxies its `/api/jst-demo` and `/api/jst-status` calls to the +already-hosted production server at `https://jst-server.fly.dev`, so the +frontend renders and is explorable without running the Rust server or any +external credentials. + +## Running in the Base44 sandbox +`docker-compose.base44.yml` runs a single `node:22` service that bind-mounts +the repo, runs `npm install`, and starts the Vite dev server serving `docs/` +on port 3000. + +- `vite.config.js` dev server is configured with `host: true`, `port: 3000`, + and `allowedHosts: true` so the preview proxy hostname is accepted. +- `npm ci` fails because `package-lock.json` is out of sync; use `npm install`. +- Prebuilt demo bundles already live in `docs/assets/` (committed), so no + `npm run build:demo` is needed to view the site. + +## Verification +- `curl -sf -H "Host: external-preview.example.com" http://localhost:3000/` + returns the page (HTTP 200) with `