🏡 Listings of homes
Ruby JavaScript HTML CSS
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
bin
config
data
db
lib
log
public
spec
vendor/assets
.gitignore
.rspec
Gemfile
Gemfile.lock
Procfile
README.md
Rakefile
config.ru

README.md

Listings

Live: house-listings.herokuapp.com

Installation (OSX)

Installation (Heroku)

  • heroku create
  • git push heroku master
  • heroku run rake db:migrate
  • heroku run rake misc:csv_import
  • heroku open
  • [Optional] To avoid Heroku row limit of 10 000 rows:
    • heroku run rails runner -c "Listing.first(100).map(&:delete); puts Listing.count"

Write-up

  • I created a very simple Rails app;
  • Then I created a schema corresponding to the CSV schema
  • I loaded the CSV into the database
  • I added an API call
  • I added the filters to the API call
  • I added the pagination to the API call
  • I did some requests testing
  • I added some links on the homepage to various examples

TODO

  • Tests for the /listings call
  • A bootstrap CRUD app to change, list, and show the data
    • This implies adding users and managing their rights
  • A simple map to see the data
  • Links to pages to navigate easily
  • Model validation
  • Some machine learning to predict the price of an house at a given location (:D)

PS: I made a 10x accelerated video of the whole proccess: https://www.youtube.com/watch?v=qAJvtrXEm7g

And just a random link for fun and profits :D.