/fast-form

Utilant Fast Form Designer

Primary LanguageVueMIT LicenseMIT

vue.js

Fast Form Designer

The Fast Form Designer is a lightweight form prototyper designed to scaffold Dynamic Forms for Loss Control 360 (LC360). The design omits details such as visibilities, validations, and calculations in get the basics of a form ready for an interactive session with customers. The JSON (sample-form.json) it current downloads will be able to POSTed to LC360 in the future.

This client-side Single Page Application (SPA) is written in TypeScript using the Vue.js framework and Bootstrap for mobile responsiveness. While Node.js is needed for development, npm run build generates a slug of HTML, JavaScript and CSS that can be run with or without a web server (provided your browser allows local JavaScript to execute).

Architecturally, the SPA has this relationship between components:

Initial loading of Vue, Font Awesome and recursive components is in main.ts. Application state is managed via Observable in store.ts. TypeScript types are declared in types.ts.

Getting Started

Development Prerequisites

Project setup

  1. Install Homebrew or Chocolatey depending on whether you are a macOS or Windows user. The latter requires a PowerShell run as Administrator (and to close and reopen after install).

  2. Make sure prerequisites are installed for your operating system.

  • macOS install: brew install git node yarn
  • Windows install: choco install git nodejs yarn
  1. Run git clone https://github.com/nstuyvesant/fast-form.git then connect to the /fast-form directory.

  2. Run yarn install to install dependencies.

Compiles and hot-reloads development webserver

yarn serve

Run end-to-end tests using Cypress

yarn test:e2e

Run unit tests using Jest (unit tests are broken right now)

yarn test:unit

Compiles and minifies for production

yarn build

Lints and fixes files

yarn lint

Customize configuration

See Configuration Reference.