nacos/console/src/main/resources/static
2018-11-12 15:36:40 +08:00
..
.vscode static cdn fix#155 2018-10-26 17:03:26 +08:00
public update lisence header 2018-10-26 21:02:33 +08:00
src validate group and dataId not empty 2018-11-12 15:36:40 +08:00
.gitignore [motify info] update namespace config 2018-09-27 22:54:19 +08:00
.webpackrc fix: Service Detail i18n 2018-10-18 14:26:05 +08:00
build.js 0.3 merge master 2018-10-26 20:32:04 +08:00
index.css update version to 0.4.0 2018-11-05 20:34:37 +08:00
index.html 0.3 merge master 2018-10-26 20:32:04 +08:00
index.js Fix #228 build js 2018-11-07 13:16:21 +08:00
package-lock.json [motify info] recovery static file 2018-09-28 11:48:40 +08:00
package.json #177 Finish EF 2018-11-02 10:38:43 +08:00
README.md modify README.md 2018-09-25 15:00:53 +08:00

开始项目

cnpm 安装(可忽略)

npm install -g cnpm --registry=https://registry.npm.taobao.org

# 设置匿名
alias cnpm="npm --registry=https://registry.npm.taobao.org \
--cache=$HOME/.npm/.cache/cnpm \
--disturl=https://npm.taobao.org/dist \
--userconfig=$HOME/.cnpmrc"

# Or alias it in .bashrc or .zshrc
$ echo '\n#alias for cnpm\nalias cnpm="npm --registry=https://registry.npm.taobao.org \
  --cache=$HOME/.npm/.cache/cnpm \
  --disturl=https://npm.taobao.org/dist \
  --userconfig=$HOME/.cnpmrc"' >> ~/.zshrc && source ~/.zshrc

详情地址: http://npm.taobao.org/

安装依赖

cnpm install

启动

npm start

构建打包

npm run build

代理配置

根目录下的 .webpackrc 修改proxy属性

"proxy": {
    "/": {
      "target": "http://ip:port/", //这边写你自己的服务Ip
      "changeOrigin": true,
      "pathRewrite": { "^/" : "" }
    }
  },

dva api

https://github.com/dvajs/dva/blob/master/docs/api/README.md