update README for installing branch api_mode (WIP)

This commit is contained in:
ato 2016-10-11 22:14:02 +02:00
parent 50d318c97c
commit c830cfc000

View file

@ -9,20 +9,31 @@
###### macOs ###### macOs
```shell ```shell
brew update brew update
brew install ruby brew install rbenv ruby-build
echo 'eval $(rbenv init -)' >> $HOME/.zshrc # assuming you're on zsh
source ~/.zshrc
brew install postgresql # for libpq-fe
xcode-select --install # click, click, click
``` ```
#### Project Init #### Project Init
```shell ```shell
git clone https://github.com/Tiqa/debats-api.git git clone https://github.com/Tiqa/debats-api.git
git checkout -b feat/api_mode origin/feat/api_mode
cd debats-api cd debats-api
gem install bundler gem install bundler
gem install pg
#gem install nokogiri
bundler config build.nokogiri --use-system-libraries # macOS issue
bundler install bundler install
rails db:reset rails db:drop
rails db:create
rails db:migrate
rails db:seed
``` ```
#### Launch server #### Launch server
```shell ```shell
rails server rails server # /usr/local/bin/rails server (macOS)
``` ```
> server launched on port 3000 > server launched on port 3000