Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

keepright-declaration-maker-demo

A standalone demo declaration maker for KeepRight.

It pulls the live spec from GitHub, renders the full question set (including conditional logic), and downloads a declaration.json file. No database, no server-side storage, no other export formats.

Run it

ES modules need a local web server (not file://).

cd keepright-declaration-maker-demo
python3 -m http.server 8080

Open http://127.0.0.1:8080.

Or:

npx serve .

How it works

  1. Fetches spec.json from the public keepright-spec repo.
  2. Renders the form in the browser (ported from keepright-declaration-maker).
  3. Evaluates visibleWhen, followups, and labelVariants client-side.
  4. Builds a declaration object matching the declaration schema.
  5. Triggers a JSON download. Nothing is sent anywhere.

Try it end-to-end

Download a declaration.json, then open it in the declaration viewer demo.

Files

  • index.html — single page shell
  • styles.css — demo styling (80s/90s Memphis Group vibe)
  • js/app.js — bootstrap, spec fetch, download
  • js/form-renderer.js, js/form-behavior.js, js/spec-utils.js, js/declaration-builder.js — ported from the main declaration maker

About

A demo version of a KeepRight declaration maker

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages