Skip to content

Commit

Permalink
update README.md: conf
Browse files Browse the repository at this point in the history
  • Loading branch information
eddycjy committed Oct 14, 2018
1 parent 5825cf0 commit 08ec57b
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,29 @@ $ go get github.com/EDDYCJY/go-gin-example

### Required

- Mysql
- Redis

### Conf

```
[database]
Type = mysql
User = root
Password =
Host = 127.0.0.1:3306
Name = blog
TablePrefix = blog_
[redis]
Host = 127.0.0.1:6379
Password =
MaxIdle = 30
MaxActive = 30
IdleTimeout = 200
...
```

### Ready

Create a **blog database** and import [SQL](https://github.com/EDDYCJY/go-gin-example/blob/master/docs/sql/blog.sql)
Expand Down
21 changes: 21 additions & 0 deletions README_ZH.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,29 @@ $ go get github.com/EDDYCJY/go-gin-example

### 必须

- Mysql
- Redis

### 配置

```
[database]
Type = mysql
User = root
Password = rootroot
Host = 127.0.0.1:3306
Name = blog
TablePrefix = blog_
[redis]
Host = 127.0.0.1:6379
Password =
MaxIdle = 30
MaxActive = 30
IdleTimeout = 200
...
```

### 准备

创建一个 `blog` 数据库,并且导入建表的 [SQL](https://github.com/EDDYCJY/go-gin-example/blob/master/docs/sql/blog.sql)
Expand Down

0 comments on commit 08ec57b

Please sign in to comment.