Setup environment

macOS

  1. Install brew package manager https://brew.sh/.

  2. Install needed packages:

brew install rbenv ruby-build postgresql yarn
  1. Install ruby 2.6.1:
rbenv install 2.6.1
  1. Set ruby global version to 2.6.1:
rbenv global 2.6.1
  1. Install bundler:
gem install bundler
  1. Clone the repository:
git clone https://github.com/snibox/snibox.git
  1. Go to project root directory:
cd <path_to_project>
  1. Install dependencies:
bundle install

Ubuntu

  1. Add node.js:
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
  1. Add yarn:
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
  1. Install needed packages:
sudo apt-get update
sudo apt-get install -y build-essential git nodejs postgresql postgresql-contrib libpq-dev libssl-dev libreadline-dev zlib1g-dev yarn
  1. Install rbenv.

  2. Install ruby-build.

  3. Install ruby 2.6.1:

rbenv install 2.6.1
  1. Set ruby global version to 2.6.1:
rbenv global 2.6.1
  1. Install bundler:
gem install bundler
  1. Clone the repository:
git clone https://github.com/snibox/snibox.git
  1. Go to project root directory:
cd <path_to_project>
  1. Install dependencies:
bundle install

Windows

  1. Install Windows Subsystem for Linux https://docs.microsoft.com/en-us/windows/wsl/install-win10.

Use Ubuntu distribution for WSL.

  1. Continue with environment guide for Ubuntu.