Skip to content

Instantly share code, notes, and snippets.

@yoomlam
Last active September 15, 2019 13:34
Show Gist options
  • Save yoomlam/bb94c691a33e5cc671109d0520b726ed to your computer and use it in GitHub Desktop.
Save yoomlam/bb94c691a33e5cc671109d0520b726ed to your computer and use it in GitHub Desktop.
Ruby on Rails command line
rails new [projName] -d mysql
cd projName
bundle install
# if cannot run a particular cmd
bundle exec [cmd] # installs and runs? cmd
rake # compiles
Toolbox: https://www.ruby-toolbox.com/categories
https://www.youtube.com/watch?v=GY7Ps8fqGdc
https://www.youtube.com/watch?v=eY1HCqe9MBc
rake db:migrate
rake db:migrate:status
rake db:migrate VERSION=[MigrationId]
Ruby with React
===============
https://www.youtube.com/watch?v=5F_JUvPq410
https://www.youtube.com/watch?v=hBm5M4u2jLs
rails new react-app --webpack=react
./bin/webpack-dev-server # live React updates
# To have React do the routing
yarn add react-router
yarn add react-router-dom
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment