Setup environment
macOS
Install brew package manager https://brew.sh/.
Install needed packages:
brew install rbenv ruby-build postgresql yarn
- Install ruby 2.6.1:
rbenv install 2.6.1
- Set ruby global version to 2.6.1:
rbenv global 2.6.1
- Install
bundler
:
gem install bundler
- Clone the repository:
git clone https://github.com/snibox/snibox.git
- Go to project root directory:
cd <path_to_project>
- Install dependencies:
bundle install
Ubuntu
- Add node.js:
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
- 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
- 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
Install rbenv.
Install ruby-build.
Install ruby 2.6.1:
rbenv install 2.6.1
- Set ruby global version to 2.6.1:
rbenv global 2.6.1
- Install
bundler
:
gem install bundler
- Clone the repository:
git clone https://github.com/snibox/snibox.git
- Go to project root directory:
cd <path_to_project>
- Install dependencies:
bundle install
Windows
- Install Windows Subsystem for Linux https://docs.microsoft.com/en-us/windows/wsl/install-win10.
Use Ubuntu distribution for WSL.
- Continue with environment guide for Ubuntu.