Demonstrates driving a cloud Vease instance through its API, the
browser equivalent of Vease's npm run cloud:load:
- A password overlay restricts the demo to people who know the password. Meanwhile the page
downloads
data.json. - The
/api/loginNitro route checks the password and logs in to the Geode Cloud API with a server-side account. Only the ID token is sent to the browser. - The browser starts a Vease instance, opens it in a new tab, waits for that tab to connect and
loads
data.jsoninto it through/api/controller/data/load.
Closing the Vease tab lets the instance shut down.
| Variable | Purpose |
|---|---|
NUXT_DEMO_PASSWORD |
Password asked by the overlay |
NUXT_GEODE_USER_EMAIL |
Geode account used to start the instance |
NUXT_GEODE_USER_PASSWORD |
Password of that account |
On Netlify, set them in the site's environment variables. Locally, copy .env.example to .env.
From the GeodeWeb-Workspaces root, run
npm install to link the local OpenGeodeWeb-Front, then in this folder:
npm run dev