No description, website, or topics provided.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
bin
config
db
lib
log
public
test
tmp
vendor
.babelrc
.gitignore
.postcssrc.yml
.ruby-version
Gemfile
Gemfile.lock
README.md
Rakefile
config.ru
package.json
tutorial.md
yarn.lock

README.md

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!