create-react-redux-pack

1.1.0 • Public • Published

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...
    });
}
...

Package Sidebar

Install

npm i create-react-redux-pack

Weekly Downloads

3

Version

1.1.0

License

MIT

Unpacked Size

28.6 kB

Total Files

25

Last publish

Collaborators

  • namgyu