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

Skip to content

A practice application for rake tasks, back-end code highlighting, mailers, resque and searchkick.

Notifications You must be signed in to change notification settings

frank184/sba_snippets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SBA Snippets

rails new sba_snippets -d mysql

init

rake db:create

mysql

  • rails g devise:install
  • rails g devise User
  • rails g devise:views
  • rake db:migrate -rake db:seed

devise User

  • rails g scaffold Snippet title code:text user:references
  • rake db:migrate

scaffolded Snippet

  • rails g scaffold Comment user:references snippet:references text:text
  • rake db:migrate

scaffolded Comment

removed scaffold.scss and rename application.css to application.scss

  • bundle

bootstrap & font-awesome

recommended nesting technique and has many association

user reference logic and authentication

secure snippet & comment destroy

  • rails g model Language
  • rake db:migrate
  • rake db:seed
  • rails g migration AddLanguageToSnippets
  • rake db:migrate

generated Languages, seeded and snippet association

  • bundle

ms-dropdown setup and more seed logic

  • bundle

adds styles, layout, partials and final touches

  • heroku create
  • bundle --without production
  • git push heroku master
  • heroku run rake db:migrate
  • heroku run rake db:seed

heroku ready

  • bundle

resque working

  • bundle

code highlights using coderay

  • bundle
  • rake searchkick:reindex CLASS=Snippet

searching working

  • bundle

typeahead working

  • rails g mailer CommentsMailer create
  • bundle

mailing working

  • bundle
  • heroku addons:create bonsai
  • heroku config:set ELASTICSEARCH_URL=`heroku config:get BONSAI_URL`
  • git push heroku master
  • heroku run rails c
  • Snippet.import force: true
  • Snippet.reindex

bonsai-elastic ready

anywhere searching

  • rake assets:precompile

precompiled assets added

  • heroku config:set SENDGRID_USERNAME=username
  • heroku config:set SENDGRID_PASSWORD=password

sendgrid working

  • heroku ps:scale worker start
  • heroku addons:create heroku-redis
  • echo "worker: env QUEUE=* bundle exec rake resque:work" > Procfile

heroku-redis ready

About

A practice application for rake tasks, back-end code highlighting, mailers, resque and searchkick.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published