Skip to content

Instantly share code, notes, and snippets.

@XeeD

XeeD/zadani.md Secret

Last active February 16, 2016 20:49
Show Gist options
  • Save XeeD/f10bd326b9d0a181e1fd to your computer and use it in GitHub Desktop.
Save XeeD/f10bd326b9d0a181e1fd to your computer and use it in GitHub Desktop.

Zadání:

Jako uživatel, který si chce půjčit peníze, chci mít možnost vybrat si částku a dobu splácení, abych viděl jaká bude moje měsíční splátka a úrok.

Features:

  • 2 slidery
      1. slider ovládá částku (amount)
      1. slider ovládá počet měsíců (term)
  • u každého slideru je <select>, který zobrazuje všechny možné hodnoty
  • <select> je propojený se sliderem - pokud se změní jeden, automaticky se mění i druhý

Poznámky

API je dostupné na https://www.vivus.com.mx/webapi/

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)
  • 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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment