Skip to content

Notes from the solidus and ruby on rails demo from On Purpose 7-25-19

Notifications You must be signed in to change notification settings

karmakatahdin/solidus-demo-notes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 

Repository files navigation

Reference Links:

Setup Doc

Homebrew

rbENV

Postgres Install using Homebrew

Git

  1. Open Terminal.

  2. Create and enter our working directory:

mkdir Workspace
cd Workspace
mkdir solidus-workshop
cd solidus-workshop
  1. Install X-Code (if you haven't already):
xcode-select --install

Optional: check if system ruby is already installed (it should be):

ruby -v
  1. Install Homebrew:

(check for previous installation with brew doctor)

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

(And make sure it, homebrew's executable directory (/usr/local/bin) has added to your path)

  1. Now go for a checkup at the doctor's with:
brew doctor

(And fix anything it complains about, possible brew update)

  1. Install rbenv:

(check for previous installation with rbenv -v; optional upgrade for those already with rbenv installed brew upgrade rbenv ruby-build)

brew install rbenv

(note: this also installs ruby-build)

And initialize it:

  rbenv init

And then check to see it's properly installed:

curl -fsSL https://github.com/rbenv/rbenv-installer/raw/master/bin/rbenv-doctor | bash

And then add it to your path:

rbenv init

echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
  1. Install Ruby:

Check available versions:

rbenv install -l

Install your selected version, and set it:

rbenv install 2.4.6

rbenv local 2.4.6
  1. Install git, check the version, and set your name and email:
brew install git

git --version

git config --global user.name "Your Name Here"
git config --global user.email "[email protected]"
  1. Install postgres:
brew install postgresql
brew services start postgresql
pgsql postgres #to login
  1. Install Imagemagick, Bundler, update gem, and install rails:
brew install imagemagick

gem install bundler

gem update --system

gem install rails
OR
gem install rails -v '5.2.3' -V --no-ri --no-rdoc
  1. Create a new Rails app
rails new my-solidus-website --database=postgresql
OR
rails _5.2.3_ new my-solidus-website --database=postgresql
  1. Add Solidus gems
gem 'solidus', '~> 2.5'

gem 'solidus_auth_devise'

gem 'deface'

Final Commands:

Run thse to finish setting up the Solidus Project:

bundle exec rails g spree:install

bundle exec rails g solidus:auth:install

bundle exec rake railties:install:migrations

bundle exec rake db:migrate

Start the server!

bundle exec rails s

About

Notes from the solidus and ruby on rails demo from On Purpose 7-25-19

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published