-
Install brew package manager https://brew.sh/.
-
Install needed packages:
brew install rbenv ruby-build postgresql yarn
- Install ruby 2.5.1:
rbenv install 2.5.1
- Clone the repository:
git clone https://github.com/snibox/snibox.git
- Go to project root directory:
cd <path_to_project>
- 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
- Install bundler:
gem install bundler
- Install dependencies:
bundle install
- Install node packages:
yarn install --pure-lockfile
- Compile frontend packs:
./bin/webpack
- Setup database:
./bin/rake db:setup
- Launch development server:
./bin/rails s
To launch webpack-dev-sever:
./bin/webpack-dev-server
Visit http://localhost:3000/ to view the project!