1.1.0 • Published 6 years ago

create-react-redux-pack v1.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

create-react-redux-pack

react + redux + webpack boilerplate

Install

$ npm i create-react-redux-pack -g
$ create-react-redux-pack

Usage

  • Just type like this
$ npm start

──────────────
🛫  Webpack Dev Server (PORT: 3000)                                     // Running Webpack Dev Server(PORT 3000).
🛫  Webpack Dev Server (PORT 3000) -> UI SERVER (PORT 8088) (PROXY)     // Running Webpack Dev Server(PORT 3000) -> UI SERVER (PORT 8088) (PROXY).
🚀  Build JS(Production)                                                // Build JS(Production)
──────────────
😢  Exit
──────────────
  • How To API proxy setting
//whitelist.js
module.exports = {
    /** 
     *  "domain": [
     *      "path1",
     *      "path2",
     *      "path3",
     *      ...
     *  ]
     */
};
//example.jsx
...
componentDidMount() {
    axios.get('/path1')   // proxy
    .then(res => {
        // Do something...
    });
}
...