This is a project for REA's 30th REAio. The main goal is to find all the listings in a suburb selected by the user and to include in the result listings from surrounding suburbs as well. For example, if the user enters "Torquay", the search engine will return listings for Torquay, as well as Jan Juc, Breamlea and so forth. Listings from the selected suburb must be on top of course. The core of this project is the search performed through PostGIS.
- Docker: please refer to the installation guide
- Docker Compose: please refer to the installation guide
Let's start by building the containers:
After this, start the application:
Now, in a different tab, create the DB by running the script:
You will also need some test data, so seed the DB with:
docker-compose run web bundle exec rake db:seed
After this, visit http://localhost:3000/ to see the main (and only) page.