Giter Site home page Giter Site logo

damozhiying / react-transform-demo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dcmsy/react-transform-demo

0.0 2.0 0.0 71 KB

node.js + react + ant.design[阿里的react组件] + webpack + babel + react-transform-hmr (热替换组件)

License: Creative Commons Zero v1.0 Universal

JavaScript 1.60% CSS 98.17% HTML 0.23%

react-transform-demo's Introduction

this is react demo

node.js + react + ant.design[阿里的react组件] + webpack + babel

Installation

cd react-demo
npm install
npm install -g pm2
npm start           //or pm2 start devServer.js -i max
open http://localhost:3000

plugs

react-transform-hmr - enables hot reloading react components react-transform-catch-errors - catches errors inside render()

deploy with pm2

use pm2 to deploy app on production envrioment.

pm2 startOrReload pm2.json

pm2 cmd

$ pm2 start www/development.js -i max

$ pm2 list

$ pm2 monit

$ tail -f /path/to/log1 /path/to/log2 ...

$ pm2 logs

$ pm2 dump

$ pm2 kill //让我们假设一个PM2停掉了 $ pm2 resurect //我所有的进程又满血满状态复活了 $ pm2 web 打开浏览器输入http://localhost:9615

react-transform-demo's People

Contributors

dcmsy avatar

Watchers

James Cloos avatar damozhiying 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.