Skip to content
This repository has been archived by the owner on Apr 4, 2018. It is now read-only.

An experiment as to what a new "calculator" format might look like on gov.uk

Notifications You must be signed in to change notification settings

alphagov/calculators-prototype

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Currently on gov.uk we have some Smart Answers that work primarily with input that we perform calculations on. For example, a lot will ask the user for their salary, dates or time periods, and so on. Various calculations are then performed to determine a result.

This repository is an experiment / early prototype as to a new format that might better suit those Smart Answers, by providing live calculations and instant feedback.

Installation

Once you clone the repository down and cd into it, you just need to install dependencies and then run the app:

$ bundle
$ ruby app.rb

Visit localhost:4567/child-benefits to see an example.

Calculator logic is stored in public/js/calculators, and the view files (EJS is used for templating) are in public/views/. There is currently only one fake calculator there to demonstrate how it works.

About

An experiment as to what a new "calculator" format might look like on gov.uk

Topics

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published