Skip to content

Commit 8f91df0

Browse files
committed
调整一些目录
1 parent c0dda58 commit 8f91df0

File tree

21 files changed

+743
-552
lines changed

21 files changed

+743
-552
lines changed

.gitpod.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ ports:
1111

1212
tasks:
1313
- init: |
14-
mv cmd/config.yaml.example cmd/config.yaml
14+
mv demo/todo/config.yaml.example demo/todo/config.yaml
1515
mysql -e "CREATE DATABASE my_apijson;"
16-
mysql -p my_apijson < cmd/test/test.sql
16+
mysql -p my_apijson < demo/todo/todo/todo.sql
1717
mysql -e "ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'yourpassword';"
1818
1919
command: |
2020
go mod tidy
21-
go run cmd/main.go
21+
# go run cmd/main.go
2222
2323
vscode:
2424
extensions:

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66

77
# 快速体验
8-
<a href="https://gitpod.io/#https://github.com/glennliao/apijson-go"><img src="https://gitpod.io/button/open-in-gitpod.svg" /> </a>
8+
<a href="https://gitpod.io/#https://github.com/glennliao/apijson-go" target="_blank"><img src="https://gitpod.io/button/open-in-gitpod.svg" /> </a>
99

1010
创建后 执行cmd/test/test.http 或者 cmd/z_test.go 访问测试
1111

@@ -76,10 +76,10 @@
7676

7777
1. go >= 1.18
7878
2. 创建mysql数据库
79-
3. 导入cmd/test.sql文件
80-
4. 从cmd/config.yaml.example 改成 cmd/config.yaml, 然后修改配置文件cmd/config.yaml中数据库连接
81-
5. 在cmd目录运行go run main.go
82-
6. 查看测试 test.http / z_test.go
79+
3. 导入demo/todo/todo/todo.sql文件
80+
4. demo/todo/config.yaml.example 改成 demo/todo/config.yaml, 然后修改配置文件 config.yaml 中数据库连接
81+
5. 在demo/todo目录运行go run main.go
82+
6. 查看测试 demo/todo/todo/tests
8383

8484

8585
# 感谢

README.zh-CN.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33

44
> 暂仍处于前期开发探索中, 请仅使用在 个人探索项目
55
6+
67
# 快速体验
7-
<a href="https://gitpod.io/#https://github.com/glennliao/apijson-go"><img src="https://gitpod.io/button/open-in-gitpod.svg" /> </a>
8+
<a href="https://gitpod.io/#https://github.com/glennliao/apijson-go" target="_blank"><img src="https://gitpod.io/button/open-in-gitpod.svg" /> </a>
89

910
创建后 执行cmd/test/test.http 或者 cmd/z_test.go 访问测试
1011

@@ -75,10 +76,10 @@
7576

7677
1. go >= 1.18
7778
2. 创建mysql数据库
78-
3. 导入cmd/test.sql文件
79-
4. 从cmd/config.yaml.example 改成 cmd/config.yaml, 然后修改配置文件cmd/config.yaml中数据库连接
80-
5. 在cmd目录运行go run main.go
81-
6. 查看测试 test.http / z_test.go
79+
3. 导入demo/todo/todo/todo.sql文件
80+
4. demo/todo/config.yaml.example 改成 demo/todo/config.yaml, 然后修改配置文件 config.yaml 中数据库连接
81+
5. 在demo/todo目录运行go run main.go
82+
6. 查看测试 demo/todo/todo/tests
8283

8384
# 感谢
8485
- [GoFrame](https://gitee.com/johng/gf)

cmd/test/test.http

Lines changed: 0 additions & 119 deletions
This file was deleted.

0 commit comments

Comments
 (0)