Skip to content

moneyadviceservice/mortgage_calculator

Repository files navigation

Mortgage Calculator

Rails engine, providing a suite of calculators to determine affordability.

Technical docs

Installation

Add this line to your application's Gemfile:

git clone git@github.com:moneyadviceservice/mortgage_calculator.git

Ensure you have bundler, node, npm and bower installed and execute:

$ bundle
$ npm install
$ bowndler install

Dependencies

Requires a HTML lang attribute set. Javascript code uses this attribute to determine which locale to display.

<html lang="<%= I18n.locale %>">

Usage

To start the dummy application:

$ cd spec/dummy
$ rails s

Tests

bundle exec rake

This will run cucumber tests through poltergeist with and without javascript. It will then run rspec and karma.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request