https://github.com/algolia/algoliasearch-rails-example
AlgoliaSearch+Ruby on Rails examples
https://github.com/algolia/algoliasearch-rails-example
Last synced: 4 months ago
JSON representation
AlgoliaSearch+Ruby on Rails examples
- Host: GitHub
- URL: https://github.com/algolia/algoliasearch-rails-example
- Owner: algolia
- Created: 2013-11-07T13:00:52.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2016-04-01T21:24:46.000Z (about 10 years ago)
- Last Synced: 2025-06-19T15:52:49.633Z (about 1 year ago)
- Language: Ruby
- Homepage:
- Size: 285 KB
- Stars: 35
- Watchers: 79
- Forks: 18
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
AlgoliaSearch Rails Example
============================
This is a Ruby on Rails application indexing 500 ```Contact``` objects and providing auto-completion and instant-search samples. See [algoliasearch-rails](http://github.com/algolia/algoliasearch-rails) gem.
A ```Contact``` is defined by:
* A name
* An email adress
* A company name
An [Algolia](http://www.algolia.com) account is required to test it.
Dependencies
------------
```ruby
gem 'algoliasearch-rails' # provides AlgoliaSearch rails integration
# + AlgoliaSearch JS Client
# + patched typeahead.js
gem 'jquery-rails'
gem 'hogan_assets'
```
Installation
--------------
* ```git clone https://github.com/algolia/algoliasearch-rails-example.git```
* ```bundle install```
Populate your DB and start indexing
--------------------------------------
* Create your ```config/application.yml``` based on ```config/application.example.yml``` with your [Algolia](http://www.algolia.com) credentials
* ```bundle exec rake db:migrate```
* ```bundle exec rake db:seed```
Start the application
---------------------
* ```bundle exec rails server```
* Enjoy your ```http://localhost:3000``` examples!

