GithubHelp home page GithubHelp logo

cuitymiko / plover-react-boilerplate Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ploverjs/plover-react-boilerplate

0.0 1.0 0.0 134 KB

plover application with react example

JavaScript 92.10% CSS 0.66% HTML 7.24%

plover-react-boilerplate's Introduction

plover-react-boilerplate

Plover结合React应用示例

功能特性

  • 集成plover最新版本,基于koa2。
  • react & redux
  • webpack
  • 基于nodemon的node应用开发支持。
  • livereload
  • 提供react服务端渲染的前后端同构方案。
  • 规划了合理的应用目录结构。
  • 使用pm2用于生产环境运行。

开发和使用

git clone https://github.com/ploverjs/plover-react-boilerplate.git
cd plover-react-boilerplate
npm install
npm run dev

# 也可以使用yarn
yarn install
yarn dev

之后就可以进行开发了。

发布

运行以下命令编译前端资源:

npm run build

编译完成会在public下生成前端资源文件。

【可选】将前端资源文件发布到CDN,如果做了这一步,还需要在config/app.js中配置一下资源的cdn访问地址,这样应用才能正确渲染前端资源地址。

应用部署到服务器后,使用以下命令启动应用:

npm start

plover-react-boilerplate's People

Contributors

bencode avatar

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.