xiao-op-c-end-mweb-fe
运营平台 2C 移动 Web 前端
项目启动
确保本地已安装:
- node version > 12.18
- git version > 2.27
- yarn > 1.22.4
- xcli
FAQ
-
安装
node
: https://nodejs.org/en/ -
安装
git
: https://git-scm.com/ -
安装
xcli
https://gitlab.xinghuolive.com/xiao-xs-fed/xcli/xcli -
本地调试:
// abc.json
// 内网打开
......
"define": {
"dev": {
"REACT_APP_TITLE": "运营 2C DEV",
"REACT_APP_BASE_NAME": "/b-end",
//⬇️替换为内网地址⬇️
"REACT_APP_ROOT_URI": "http://127.0.0.1:8080",
......
// 连接内网服务
......
"devServer": {
"port": 3000,
"https": false,
"proxy": {
"/bd/xhboss/eduboss": {
//⬇️替换为本地代理地址⬇️
"target": "https://cmall-test.xiao100.com",
"changeOrigin": true
}
}
},
......