Clone the repository, Run following commands:
bundle install
This installs the dependenciesbin/rails s
This runs the serverbin/rails db:create
Create the databases
docker-compose build
Build the imagesdocker-compose up
Start docker processesdocker-compose run web rails db:create
Create the databases
curl localhost:3000/payment-amount
- required parameters:
- asking_price
- down_payment
- must be at least 5% of the first 500k plus 10% of any amount above 500k (50k on a 750k)
- amortization_period
- min 5 years maximum of 25 years
- payment_schedule
- weekly, bi-weekly or monthly
curl localhost:3000/mortgage-amount
- required parameters:
- payment_amount
- payment_schedule
- weekly, bi-weekly or monthly
- mortization_period
- min 5 years maximum of 25 years
- optional parameters:
- down_payment
- if included, it's value should be added to the maximum mortgage returned
- down_payment
curl localhost:3000/interest-rate
- required parameters:
- interest_rate