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
```shell
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
```shell
git clone https://github.com/Tiqa/debats-api.git
git checkout -b feat/api_mode origin/feat/api_mode
cd debats-api
gem install bundler
gem install pg
#gem install nokogiri
bundler config build.nokogiri --use-system-libraries # macOS issue
bundler install
rails db:reset
rails db:drop
rails db:create
rails db:migrate
rails db:seed
```
#### Launch server
```shell
rails server
rails server # /usr/local/bin/rails server (macOS)
```
> server launched on port 3000