You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Go to file
Humphry 71cf715956
Merge pull request #122 from thx/dependabot/npm_and_yarn/elliptic-6.6.0
build(deps-dev): bump elliptic from 6.5.4 to 6.6.0
3 months ago
docker fix: docker config 5 years ago
public feat: sync from RAP2@alibaba-internal to RAP2@CE 5 years ago
scripts feat: 默认值系统 5 years ago
src feat: dev fix version update bug 4 years ago
.dockerignore feat: docker 部署 5 years ago
.gitignore fix import bug 6 years ago
.jshintrc first submit 7 years ago
.travis.yml dev 7 years ago
Dockerfile update https://registry.npm.taobao.org to https://registry.npmmirror.com 3 years ago
LICENCE.txt dev 7 years ago
README.md Update README.md 4 years ago
changeLog.md feat: add interface exporting API 4 years ago
dispatch.js feat: 默认值系统 5 years ago
package-lock.json Merge pull request #122 from thx/dependabot/npm_and_yarn/elliptic-6.6.0 3 months ago
package.json Merge pull request #110 from thx/dependabot/npm_and_yarn/codemirror-5.58.2 3 months ago
rap2-dolores.release first submit 7 years ago
tsconfig.json feat: sync from RAP2@alibaba-internal to RAP2@CE 5 years ago
tslint.json feat: 懒加载接口 5 years ago

README.md

RAP2-DOLORES CE version (front-end static build)

Build Status

Intro

RAP2 is a new project based on RAP1. It has two components: RAP2是在RAP1基础上重做的新项目它包含两个组件(对应两个Github Repository)。

  • rap2-delos: back-end data API server based on Koa + MySQL link

  • rap2-dolores: front-end static build based on React link

  • rap2-delos: 后端数据API服务器基于Koa + MySQLlink

  • rap2-dolores: 前端静态资源基于React link

Resources

Deployment 部署

development 开发模式


# initialize 初始化
npm install

# config development mode server API path in /src/config/config.dev.js
# 配置开发模式后端服务器的地址。 /src/config/config.dev.js

# test cases 测试用例
npm run test

# will watch & serve automatically 会自动监视改变后重新编译
npm run dev

production

# 1. config server API path in /src/config/config.prod.js(production config file)
# 1. 配置后端服务器的地址。 /src/config/config.prod.js(生产模式配置文件)

# 2. produce react production package
# 2. 编译React生产包
npm run build

# 3. use serve or nginx to serve the static build directory
# 3. 用serve命令或nginx服务器路由到编译产出的build文件夹作为静态服务器即可

serve -s ./build -p 80

Author

  • Owner: Alimama FE Team
  • Author:
    • Before v2.3: all by @Nuysoft, creator of mockjs.
    • v2.4+ / CE version: Bosn(creator of RAP1) Nuysoft
    • We are looking for more and more contributors :)

Tech Arch

  • Front-end (rap2-dolores)
    • React / Redux / Saga / Router
    • Mock.js
    • SASS / Bootstrap 4 beta
    • server: nginx
  • Back-end (rap2-delos)
    • Koa
    • Sequelize
    • MySQL
    • Server
    • server: node