Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Litemall
Commits
23a673a7
Commit
23a673a7
authored
Apr 17, 2023
by
linlinjava
Browse files
chore[doc]: 调整cnpm改成npm
parent
fce48154
Changes
7
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
23a673a7
...
...
@@ -108,10 +108,9 @@ litemall = Spring Boot后端 + Vue管理员前端 + 微信小程序用户前端
打开命令行,输入以下命令
```bash
npm install -g cnpm --registry=https://registry.npm.taobao.org
cd litemall/litemall-admin
c
npm install
c
npm run dev
npm install
--registry=https://registry.npm.taobao.org
npm run dev
```
此时,浏览器打开,输入网址`http://localhost:9527`, 此时进入管理后台登录页面。
...
...
@@ -132,10 +131,9 @@ litemall = Spring Boot后端 + Vue管理员前端 + 微信小程序用户前端
打开命令行,输入以下命令
```bash
npm install -g cnpm --registry=https://registry.npm.taobao.org
cd litemall/litemall-vue
c
npm install
c
npm run dev
npm install
--registry=https://registry.npm.taobao.org
npm run dev
```
此时,浏览器(建议采用chrome 手机模式)打开,输入网址`http://localhost:6255`, 此时进入轻商场。
...
...
deploy/README.md
View file @
23a673a7
...
...
@@ -10,8 +10,8 @@
cat ./litemall-db/sql/litemall_data.sql >> ./deploy/db/litemall.sql
cd ./litemall-admin
c
npm install
c
npm run build:dep
npm install
--registry=https://registry.npm.taobao.org
npm run build:dep
cd ..
mvn clean package
...
...
deploy/util/package.sh
View file @
23a673a7
...
...
@@ -16,18 +16,15 @@ cat $LITEMALL_HOME/litemall-db/sql/litemall_schema.sql > $LITEMALL_HOME/deploy/d
cat
$LITEMALL_HOME
/litemall-db/sql/litemall_table.sql
>>
$LITEMALL_HOME
/deploy/db/litemall.sql
cat
$LITEMALL_HOME
/litemall-db/sql/litemall_data.sql
>>
$LITEMALL_HOME
/deploy/db/litemall.sql
# 安装阿里node镜像工具
npm
install
-g
cnpm
--registry
=
https://registry.npm.taobao.org
# 打包litemall-admin
cd
$LITEMALL_HOME
/litemall-admin
c
npm
install
c
npm run build:dep
npm
install
--registry
=
https://registry.npm.taobao.org
npm run build:dep
# 打包litemall-vue
cd
$LITEMALL_HOME
/litemall-vue
c
npm
install
c
npm run build:dep
npm
install
--registry
=
https://registry.npm.taobao.org
npm run build:dep
cd
$LITEMALL_HOME
mvn clean package
...
...
doc/FAQ.md
View file @
23a673a7
...
...
@@ -137,7 +137,7 @@ litemall.wx.notify-url=
现象:
执行
`
c
npm install`
失败
执行
`npm install`
失败
原因:
...
...
@@ -145,7 +145,7 @@ litemall.wx.notify-url=
解决:
清空node_modules,重新执行
`
c
npm install`
命令,或者自行百度、Google。
清空node_modules,重新执行
`npm install`
命令,或者自行百度、Google。
### 2.3 分页数据返回不正常
...
...
doc/project.md
View file @
23a673a7
...
...
@@ -395,18 +395,17 @@ flush privilege
### 1.4.4 Vue开发环境
1.
安装
[
nodejs
](
https://nodejs.org/en/
)
2.
安装依赖库
2.
安装依赖库
```
cd litemall/litemall-admin
npm install -g cnpm --registry=https://registry.npm.taobao.org
cnpm install
```
```
cd litemall/litemall-admin
npm install --registry=https://registry.npm.taobao.org
```
3.
编译并运行
```
c
npm run dev
npm run dev
```
然后,打开浏览器,输入
`http://localhost:9527`
。
如果出现管理后台登录页面,则表明管理后台的前端运行正常;
...
...
@@ -425,9 +424,9 @@ flush privilege
1.
管理后台前端,即litemall-admin模块,配置文件在litemall-admin中,存在三个配置文件
`env.development`
,
`env.deployment`
和
`.env.production`
。这里面配置信息都是一样,最主要的配置是
`VUE_APP_BASE_API`
,即管理后台的服务根地址。
*
开发阶段,开发者运行命令
`
c
npm run dev`
,这里就会采用
`env.development`
配置文件;
*
部署阶段,当开发者运行命令
`
c
npm run build:dep`
,这里就会采用
`env.deployment`
配置文件;
*
上线阶段,当开发者运行命令
`
c
npm run build:prod`
,这里就会采用
`.env.production`
配置文件。
*
开发阶段,开发者运行命令
`npm run dev`
,这里就会采用
`env.development`
配置文件;
*
部署阶段,当开发者运行命令
`npm run build:dep`
,这里就会采用
`env.deployment`
配置文件;
*
上线阶段,当开发者运行命令
`npm run build:prod`
,这里就会采用
`.env.production`
配置文件。
2.
小商场前端,即litemall-wx模块,配置文件是
`litemall-wx/project.config.json`
和
`litemall-wx/api.js`
。
这里面最主要的配置信息是
`project.config.json`
中的
`appid`
,开发者需要设置自己申请的appid;
...
...
@@ -899,8 +898,8 @@ sudo mysql_secure_installation
cat ./litemall-db/sql/litemall_data.sql >> ./deploy/db/litemall.sql
cd ./litemall-admin
c
npm install
c
npm run build:dep
npm install
--registry=https://registry.npm.taobao.org
npm run build:dep
cd ..
mvn clean package
...
...
docker/README.md
View file @
23a673a7
...
...
@@ -10,8 +10,8 @@
cat ./litemall-db/sql/litemall_data.sql >> ./docker/db/init-sql/litemall.sql
cd ./litemall-admin
c
npm install
c
npm run build:dep
npm install
--registry=https://registry.npm.taobao.org
npm run build:dep
cd ..
mvn clean package
...
...
docker/util/package.sh
View file @
23a673a7
...
...
@@ -16,18 +16,15 @@ cat $LITEMALL_HOME/litemall-db/sql/litemall_schema.sql > $LITEMALL_HOME/docker/d
cat
$LITEMALL_HOME
/litemall-db/sql/litemall_table.sql
>>
$LITEMALL_HOME
/docker/db/init-sql/litemall.sql
cat
$LITEMALL_HOME
/litemall-db/sql/litemall_data.sql
>>
$LITEMALL_HOME
/docker/db/init-sql/litemall.sql
# 安装阿里node镜像工具
npm
install
-g
cnpm
--registry
=
https://registry.npm.taobao.org
# 打包litemall-admin
cd
$LITEMALL_HOME
/litemall-admin
c
npm
install
c
npm run build:dep
npm
install
--registry
=
https://registry.npm.taobao.org
npm run build:dep
# 打包litemall-vue
cd
$LITEMALL_HOME
/litemall-vue
c
npm
install
c
npm run build:dep
npm
install
--registry
=
https://registry.npm.taobao.org
npm run build:dep
cd
$LITEMALL_HOME
mvn clean package
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment