Commit 5025916ad95ae57942a0e6edcdca7e21a1beff27

Authored by ly525
1 parent b4a7ebf0

docs(quick-start): update installation

docs/en/getting-started/quick-start.md
@@ -27,15 +27,18 @@ Vue.js: Front-end framework<br />Strapi.js: Open source Node.js Headless CMS to @@ -27,15 +27,18 @@ Vue.js: Front-end framework<br />Strapi.js: Open source Node.js Headless CMS to
27 ```bash 27 ```bash
28 # by default, the current path is the root path for luban-h5 28 # by default, the current path is the root path for luban-h5
29 cd back-end/h5-api 29 cd back-end/h5-api
  30 +# use yarn (⚠️not npm) install dependencies
  31 +# reference: https://github.com/ly525/luban-h5/issues/92
30 yarn install # install dependencies 32 yarn install # install dependencies
31 33
32 -npm run dev # dev  
33 -# additional notes: run `npm run localdev` if you want to debug it in vscode 34 +yarn dev # dev
  35 +# additional notes: run `yarn localdev` if you want to debug it in vscode
34 36
35 -# #!en: default database is sqlite3(db location: h5-api/.tmp/data.db) 37 +#!en: default database is sqlite3(db location: h5-api/.tmp/data.db)
36 38
37 -# 访问 http://locahost:1337/admin  
38 # visit http://locahost:1337/admin 39 # visit http://locahost:1337/admin
  40 +
  41 +Please read on to config the strapi admin
39 ``` 42 ```
40 43
41 ### 2. Something important 44 ### 2. Something important
docs/zh/getting-started/quick-start.md
@@ -56,6 +56,8 @@ yarn config set registry https://registry.npm.taobao.org @@ -56,6 +56,8 @@ yarn config set registry https://registry.npm.taobao.org
56 ```bash 56 ```bash
57 # 默认当前目录为 luban 项目的根目录 57 # 默认当前目录为 luban 项目的根目录
58 cd back-end/h5-api 58 cd back-end/h5-api
  59 +# 使用 yarn 安装依赖,而非 yarn
  60 +# 原因参见:https://github.com/ly525/luban-h5/issues/92
59 yarn install # 安装依赖 61 yarn install # 安装依赖
60 62
61 npm run dev 63 npm run dev
@@ -66,6 +68,8 @@ npm run dev @@ -66,6 +68,8 @@ npm run dev
66 68
67 # 访问 http://locahost:1337/admin 69 # 访问 http://locahost:1337/admin
68 # visit http://locahost:1337/admin 70 # visit http://locahost:1337/admin
  71 +
  72 +请继续阅读,进行相关配置
69 ``` 73 ```
70 74
71 ### 2. 注意事项 75 ### 2. 注意事项