- Software Updates
- Download Xcode from the App Store
Fire up Terminal 🔥
xcode-select --install
git clone [email protected]:markbrown4/aaybee.git
cd aaybee
Install Homebrew if you don't have it.
brew install rbenv
brew install postgresql
brew services start postgresql
brew install imagemagick
rbenv init
rbenv install 2.4.1
rbenv global 2.4.1
ruby -v
should output "ruby 2.4.1"
You'll use Bundler for installing Gems.
gem install bundler
bundle install
This will create the db with seed data
bin/rails db:create
bin/rails db:migrate
bin/rails db:seed
bin/rails server
bin/rails routes # show which URL's map to controllers / actions
bin/rails console # Interact with your models / db - try "User.all"
bin/rails db:migrate # Run db migrations to change the db schema