This is a Ruby on Rails application indexing 500 Contact
objects and providing auto-completion and instant-search samples. See algoliasearch-rails gem.
A Contact
is defined by:
- A name
- An email adress
- A company name
An Algolia account is required to test it.
gem 'algoliasearch-rails' # provides AlgoliaSearch rails integration
# + AlgoliaSearch JS Client
# + patched typeahead.js
gem 'jquery-rails'
gem 'hogan_assets'
git clone https://github.com/algolia/algoliasearch-rails-example.git
bundle install
- Create your
config/application.yml
based onconfig/application.example.yml
with your Algolia credentials bundle exec rake db:migrate
bundle exec rake db:seed
bundle exec rails server
- Enjoy your
http://localhost:3000
examples!