This application provides a tool for suggesting a location based on a start destination and keywords
Steps to run(Assuming a Linux OS)
-
Install ruby
https://www.digitalocean.com/community/tutorials/how-to-install-ruby-and-set-up-a-local-programming-environment-on-ubuntu-16-04
-
Intall Elastic Search
https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-elasticsearch-on-ubuntu-14-04
-
Install Redis
https://www.digitalocean.com/community/tutorials/how-to-install-and-use-redis
-
Install libraries required
gem install redis gem install net/http gem install uri gem install json gem install timeout
-
Clone this repository
git clone https://github.com/shikshachauhan/location-search.git
-
Checkout to this directory
cd location-search
-
Initialize Application
ruby lib/initializer.rb
-
Run application
ruby main.rb
-
Intall dependent library
gem install minitest
-
Checkout to this directory
cd location-search
-
Run command
ruby test/test_runner.rb