Thanks to visit codestin.com
Credit goes to github.com

Skip to content

frank184/sba_bookstore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SBA Bookstore

  • rails new sba_bookstore

init

  • rails g scaffold Book title description:text image_url

book scaffold, partials

  • bundle

bootstrap, font-awesome and basic layout & styles

  • bundle
  • rake searchkick:reindex CLASS=Book

searchkick and searchable models

  • bundle
  • Ctrl + Shift + R browser for app/assets

typeahead autocompletion

added font-awesome icon to search bar

  • bundle --without production
  • heroku create
  • git push heroku master
  • heroku run rake db:migrate (fails)

heroku ready

  • git push heroku master
  • heroku run rake db:migrate
  • go install elasticbox before seeding
  • heroku run rake db:seed (fails)

oops forget about mysql and heroku crashes when sqllite is detected

  • heroku run rake db:seed (works)
  • heroku open (fails, expecting local elasticsearch)
  • heroku addons:create bonsai
  • heroku config:set ELASTICSEARCH_URL=heroku config:get BONSAI_URL
  • heroku run rake searchkick:reindex CLASS=Book

oops setup bonsai for Heroku

rename heroku repository

  • bundle

styling it up!

ajax searching

  • echo "Book.import force: true" | rails c
  • heroku run echo "Book.import force: true" | rails c

(elasticsearch-rails requires this operation to perform CRUD)

About

A back-end book store to practice searching and autocompletiong

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published