Git Product home page Git Product logo

fe's Introduction

开发

1、先运行基座(layout-web)
2、运行指定子系统

构建

你可以分别构建基座和各个子系(请参考各子系统目录下的README.md文件),或者直接使用make build进行统一构建, 构建后的代码默认会存放到 <root>/pub 文件夹里

部署

<root>/pub 部署到环境机器上,修改 nginx server root 配置
分别构建时需要复制 <root>/layout-web/static 到环境机器的 pub

static 里面存放的是一些前端的静态配置,没有特殊需求不需要做任何修改,后面会逐步完善文档。

常见问题

1、Error: Cannot find module '../src/package/xxxx'
子系统没有安装公共组件 git clone <fe-packages.git> src/packages

2、根目录缺少 proxy.config.js 文件
需要手动在根目录创建代理配置文件

module.exports = {
  '/api/rdb': 'http://rdb.com',
  '/api/ams-ce': '',
  '/api/job': '',
  '/api/ticket': '',
  '/api/mon': '',
  '/api/transfer': '',
  '/api/index': '',
}

环境支持

Chrome: last 2 versions
Node: v12

fe's People

Contributors

jsers avatar liujingjingg avatar smarkm avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.