md app-dir cd app-dir rails new . --api --database=postgresql/(leave for sqlite) rails db:create # makes empty DB rails s -p 3001 # so that we can test with other port for SPA
gem 'bcrypt' # open this
uncomment > require "sprockets/railtie" # something for Asset pipeline run bundle install to bring in bcrypt
The asset pipeline is technically no longer a core feature of Rails 4, it has been extracted out of the framework into the sprockets-rails gem.
> rails g migration CreateUsers Then add model to db\migrate\<new-file-created> The 'password_digest' field is required for bcrypt
rails g migration CreateLists