Giter VIP home page Giter VIP logo

woku-react's Introduction

我酷科技 web

特性

  • all in js
  • 自动化构建
  • 自动化测试
  • 前端路由,与后端分离
  • 开发构建时,前端页面自动刷新,后端服务自动重启
  • 后端首屏渲染(还在实验状态)
  • 前端组件化
  • 前后端复用一套代码
  • 后端generator特性摆脱回调地狱

技术栈

构建:webpack babel react-hot-loader

前端:react flux antd

后端:koa mysql redis

测试:mocha istanbul

额外:css-inline server-render

暂不:class import

install for MAC

brew install redis
brew install mysql

install for Windows

手动安装 redis mysql 服务

Run

开发

开发环境默认端口8080,热编译资源端口默认为9090

# 安装依赖
npm install

# 构建
npm run build

服务器部署

生产环境默认端口80

# 安装依赖
npm install

# 运行
npm run release

# 终止运行
npm run clean

测试

# 测试&覆盖率
npm run test
~~~

## 主要项目结构

~~~js
client  // 客户端
|---- component     // 组件
|---- lib           // 库文件
|---- mixin         // mixin
|---- src           // 业务
|---- test          // 测试
|---- static        // 前端代码打包目录
|---- html.js       // html模板
|---- router.js     // 路由
|---- main.js       // 入口
server  // 服务端
|---- config        // 配置
|---- controllers   // 控制器
|---- models        // 模型
|---- lib           // 库文件
|---- render        // 服务端渲染
|---- validate      // 校验
|---- test          // 测试
|---- ruoter.js     // 路由
|---- app.js        // 入口
~~~

woku-react's People

Contributors

ascoders avatar

Stargazers

0xmoli avatar maqibin avatar

Watchers

 avatar  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.