Build a Blog in 15 (More Like 30) Minutes: Webpacker Edition

RailsConf CRUD app demo. Full tutorial coming soon! But for now: tutorial


Branch flow

There branchs for each step of CRUD--they build upon each other

  • r-of-crud-started (space to get started) === master
  • r-of-crud-completed (implemented)
  • c-of-crud-started (space to get started (has a form, no mutation))
  • c-of-crud-completed (implemented)
  • d-of-crud-started (space to get started, has a PostRow, delete link, no mutation)
  • d-of-crud-completed (implemented)
  • u-of-crud-started (space to get started, has an edit link that toggles between edit mode, no mutation)
  • u-of-crud-completed (implemented)
  • crud-complete (all done!)

Dependencies

ensure you have rails 5+, ruby 2.4+, yarn

  • $ rails -v || $ gem install rails -v 5.2
  • $ rbenv versions || $ rbenv local 2.4.1
  • $ yarn -v || $ brew install yarn

Start servers

  • $ rails server
  • $ ./bin/webpack-dev-server || $ yarn start

Seed data

  • $ rails db:seed

Have fun!