Development: macOS
Vladimir Avgustov edited this page 2018-06-29 20:36:24 +03:00
  1. Install brew package manager https://brew.sh/.

  2. Install needed packages:

brew install rbenv ruby-build postgresql yarn
  1. Install ruby 2.5.1:
rbenv install 2.5.1
  1. Clone the repository:
git clone https://github.com/snibox/snibox.git
  1. Go to project root directory:
cd <path_to_project>
  1. Set ruby local version to 2.5.1 if you have other global version:
rbenv local 2.5.1

or if you want 2.5.1 to be global:

rbenv global 2.5.1
  1. Install bundler:
gem install bundler
  1. Install dependencies:
bundle install
  1. Install node packages:
yarn install --pure-lockfile
  1. Compile frontend packs:
./bin/webpack
  1. Setup database:
./bin/rake db:setup
  1. Launch development server:
./bin/rails s

To launch webpack-dev-sever:

./bin/webpack-dev-server

Visit http://localhost:3000/ to view the project!