Skip to content

Commit f30aea8

Browse files
committed
update readme
1 parent 0613745 commit f30aea8

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -634,6 +634,28 @@ Hopefully then guide was helpful for you, and if you want any points clarified o
634634
Cheers, and happy coding!
635635

636636
## How to run
637+
*Clone source from github: `git@github.com:ntamvl/rails_5_api_tutorial.git`*
638+
```
639+
cd
640+
git clone git@github.com:ntamvl/rails_5_api_tutorial.git && cd rails_5_api_tutorial
641+
bundle install
642+
```
643+
*Edit `config/database.yml`*
644+
```
645+
default: &default
646+
adapter: postgresql
647+
encoding: unicode
648+
template: template0
649+
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
650+
host: localhost
651+
port: 5432
652+
username: postgres
653+
password: password
654+
655+
development:
656+
<<: *default
657+
database: filter_api_development
658+
```
637659
*Create a new user to get token, type command `rails c`*
638660
```ruby
639661
u = User.create({name: "Tam Nguyen", email: "ntamvl@gmail.com"})

0 commit comments

Comments
 (0)