Skip to content

About

Demo: start a cloud Vease instance and load data through its API

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

Repository files navigation

Demo-VeaseAPI

Demonstrates driving a cloud Vease instance through its API, the browser equivalent of Vease's npm run cloud:load:

  1. A password overlay restricts the demo to people who know the password. Meanwhile the page downloads data.json.
  2. The /api/login Nitro 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.
  3. The browser starts a Vease instance, opens it in a new tab, waits for that tab to connect and loads data.json into it through /api/controller/data/load.

Closing the Vease tab lets the instance shut down.

Environment variables

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.

Development

From the GeodeWeb-Workspaces root, run npm install to link the local OpenGeodeWeb-Front, then in this folder:

npm run dev

About

Demo: start a cloud Vease instance and load data through its API

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages