GithubHelp home page GithubHelp logo

rockyxiansheng / react-server-render Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jiaoxuebing2014/react-server-render

0.0 1.0 0.0 612 KB

react服务端渲染(持续更新中。。。喜欢的话请点star,要订阅点watch!)借鉴:https://github.com/chikara-chan/react-isomorphic-boilerplate

License: MIT License

JavaScript 100.00%

react-server-render's Introduction

Visual

服务器端渲染WEB APP

技术栈

  • [React]
  • [React Router 3.x]
  • [Mobx]
  • [axios]
  • [Sass]
  • [PostCSS]
  • [Koa 2.x]
  • [Webpack 1.x]
  • [Babel]
  • [Hot Module Replacement]
  • [pm2]
  • Database
  • Test Framework

开始

  • 需要Node.jsV6以上版本
  • npm install 安装依赖
  • npm run dev 启动开发环境
  • npm run build 编译文件
  • npm start 部署生产服务器

目录结构

visual/                                      // 根目录
├── build/                                   // webpack 配置
│     ├── webpack.dev.config.js                 // DEV环境
│     └── webpack.prod.config.js                // RPD环境
├── client/                                  // 客户端目录
│     ├── config/                               // 配置
│     ├── containers/                           // 页面容器
│     ├── mixin/                                // scss mixin
│     ├── app.js                                // 入口JS
│     ├── app.scss                              // 公共SCSS
│     └── app.state.js                          // 全局State
├── dist/                                    // 编译输出目录
│     ├── client/                               // 客户端
│     └── server/                               // 服务端
├── server/                                  // 服务端目录
│     ├── controllers/                          // 控件器
│     ├── middlewares/                          // 中间件
│     ├── models/                               // models
│     ├── routes/                               // routes
│     ├── app.js                                // 在服务器上创建KOA实例
│     ├── server.dev.js                         // 开发模式下的入口文件
│     └── server.prod.js                        // 生产模式下的入口文件
├── views/                                   // 视图目录
│     ├── dev/                                  // 开发模式下生成的输出文件
│     ├── prod/                                 // 生产模式下生成的输出文件
│     └── tpl                                   // 模板
├── .eslintignore
├── .eslintrc
├── .gitattributes
├── .gitignore
├── LICENSE
├── package.json
└── README.md

第三方库

  • [antd-mobile]
  • [html2canvas]
  • [svg.js]
  • [f2]
  • [validator]
  • Phaser

react-server-render's People

Watchers

 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.