Skip to content

Commit 624f022

Browse files
authored
Update readme.md
1 parent 65f2b96 commit 624f022

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

readme.md

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@
2121

2222
### 基础安装
2323

24-
#### 1. 克隆源代码
24+
#### 克隆源代码
2525

2626
克隆源代码到本地:
2727

2828
> git clone [email protected]:overtrue/api.yike.io.git
2929

30-
#### 2. 配置本地的 Homestead 环境
30+
#### 配置本地的 Homestead 环境
3131

3232
1). 运行以下命令编辑 Homestead.yaml 文件:
3333

@@ -60,11 +60,11 @@ homestead provision
6060

6161
随后请运行 `homestead reload` 进行重启。
6262

63-
#### 3. 安装扩展包依赖
63+
#### 安装扩展包依赖
6464

6565
composer install
6666

67-
#### 4. 生成配置文件
67+
#### 生成配置文件
6868

6969
```
7070
cp .env.example .env
@@ -81,7 +81,7 @@ DB_USERNAME=homestead
8181
DB_PASSWORD=secret
8282
```
8383

84-
#### 5. 生成数据表及生成测试数据
84+
#### 生成数据表及生成测试数据
8585

8686
在 Homestead 的网站根目录下运行以下命令
8787

@@ -91,13 +91,21 @@ $ php artisan migrate --seed
9191

9292
初始的用户角色权限已使用数据迁移生成。
9393

94-
#### 7. 生成秘钥
94+
#### 生成秘钥
9595

9696
```shell
97-
php artisan key:generate
97+
$ php artisan key:generate
9898
```
9999

100-
#### 8. 配置 hosts 文件
100+
#### Passport 初始化
101+
102+
```shell
103+
$ php artisan passport:install
104+
```
105+
106+
将生成的 password grant 对应的 id 与 secret 记录下来,用于配置前端应用的 env 变量。
107+
108+
#### 配置 hosts 文件
101109

102110
echo "192.168.10.10 api.yike.io.test" | sudo tee -a /etc/hosts
103111

0 commit comments

Comments
 (0)