Skip to content

vetrilad/hpi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

An API that will query the house price index data and return an inflated price for a given property value and a region within the United Kingdom.

Get it running

You will need to download the House Price Index Data from http://landregistry.data.gov.uk/app/ukhpi and place it in the main folder. The application uses SQLite for performance reasons - therefore run rake migrate to translate the CSV file to SQLite (will take a couple of minutes)

Server

bundle install

rackup

Example Request

http://localhost:9292/api/inflation?location=York&fromDate=2001-08-01&toDate=2016-05-01&propertyValue=100000

Should Return : {"inflated_price":241570}

About

Interview task

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages