Skip to content

Latest commit

 

History

History
30 lines (24 loc) · 2.12 KB

README.md

File metadata and controls

30 lines (24 loc) · 2.12 KB

Simple loan calculator

The task

As a user who needs to get lend some money I would like to have the ability to choose the amount and term of the loan so that I know what will be my monthly instalment and interest.

Features

  • 2 sliders
    • 1st slider controls the amount
    • 2nd slider controls the term (number of loan)
  • The calculator has a configuration. The configuration contains the minimum, maximum and step for both amount and term. It also contains the default value.
  • Each slider has also a <select> besides it. The <select> contains all possible values (take step into account).
  • If either of these control elements change the second one must be updated as well (slider changes -> select is updated and vice versa).

The API

API is available at https://js-developer-second-round.herokuapp.com/api/v1/

Bonus

  • Use Flux (Redux) to capture the state of the application
  • Use Immutable.js or Ramda to save and manipulate the state
  • Use some boilerplate to kick off the project (e.g. Este)
  • Use /api/v1/application/real-first-loan-offer and offer should be rendered correctly (so your selected amount and term will allways correspond with shown offer)
  • Cache all requests so the application is more responsive to user input
  • Server rendering
  • Use inline styles

Example of a production application: https://www.vivus.com.mx/