Commit 32744e35a4ea81d9e88f9d58390291960e97f58a
Committed by
GitHub
1 parent
ed4720ea
docs: update API README.md
Showing
1 changed file
with
18 additions
and
4 deletions
back-end/h5-api/README.md
| 1 | 1 | ## The api for Luban-H5 powered by [Strapi](https://github.com/strapi/strapi/) |
| 2 | +#!zh: 鲁班H5的后端接口,由 [Strapi](https://github.com/strapi/strapi/) 强力驱动 | |
| 2 | 3 | |
| 3 | 4 | ## Project setup |
| 5 | +#!zh: 项目启动 | |
| 4 | 6 | |
| 5 | 7 | ```bash |
| 6 | 8 | # install strapi globally |
| 9 | +# #!zh: 全局安装 strapi | |
| 7 | 10 | npm install strapi@beta -g |
| 8 | 11 | |
| 9 | 12 | yarn install |
| 10 | 13 | |
| 11 | 14 | strapi develop |
| 12 | 15 | |
| 13 | -# default database is sqlite3(h5-api/.tmp/data.db) | |
| 16 | +# #!en: default database is sqlite3(h5-api/.tmp/data.db) | |
| 17 | +# #!zh: 默认数据库是 sqlite3,位置在 h5-api/.tmp/data.db | |
| 14 | 18 | # visit http://locahost:1337/admin |
| 15 | 19 | ``` |
| 16 | 20 | |
| 21 | +## Warning | |
| 22 | +#!zh: 注意事项 | |
| 23 | + | |
| 24 | +1. if you dev locally, if the api give you 403 Forbidden, please select all the options in [Roles And Permission] -> [Public] - [Permissions] | |
| 25 | + | |
| 26 | +#!zh: 本地开发,如果后端接口报错 403 Forbidden,请 编辑 下图的 [Roles And Permission] -> [Public] - [Permissions] 里面打开接口的访问权限接口 | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 17 | 31 | |
| 18 | 32 | ## Features(zh) |
| 19 | 33 | - [x] 创建、保存、更新作品 |
| 20 | 34 | - [x] 在线预览 |
| 21 | 35 | - [x] 二维码预览 |
| 22 | - - [ ] 表单数据收集 | |
| 23 | - - [ ] 表单数据展示 | |
| 36 | + - [x] 表单数据收集 | |
| 37 | + - [x] 表单数据展示 | |
| 24 | 38 | |
| 25 | 39 | ## Features(en) |
| 26 | 40 | - [x] create work |
| ... | ... | @@ -28,4 +42,4 @@ strapi develop |
| 28 | 42 | - [x] update work |
| 29 | 43 | - [x] Online Preview |
| 30 | 44 | - [x] QR Code Preview |
| 31 | - - [ ] Form Statistics | |
| 32 | 45 | \ No newline at end of file |
| 46 | + - [x] Form Statistics | ... | ... |