diff --git a/README.md b/README.md index b61eba7..bea4399 100644 --- a/README.md +++ b/README.md @@ -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