Skip to content

webcoderph/chewy_example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

##Requirement

  • elasticsearch

##Installation

Run first elasticsearch on your terminal:

elasticsearch

Then go to your app path and type:

bundle install
rake db:setup
rake db:migrate
rake chewy:reset

After that you have to set and import the index:

rails c
> PostsIndex.create!
> PostsIndex.import!

Then your good to go:

rails s
localhost:3000/posts