update README for installing branch api_mode (WIP)
This commit is contained in:
parent
50d318c97c
commit
c830cfc000
1 changed files with 14 additions and 3 deletions
17
README.md
17
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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue