bananaoomarang / isomorphic-redux

Isomorphic Redux demo, with routing and async actions
https://medium.com/@bananaoomarang/handcrafting-an-isomorphic-redux-application-with-love-40ada4468af4
MIT License
455 stars 87 forks source link

How can I run this demo on windows? #32

Closed zjdgx closed 8 years ago

zjdgx commented 8 years ago

I can't run this demo on windows as I don't know how to run node --harmony with path. Please help me to run this demo on windows. thanks!

Dattaya commented 8 years ago

@zjdgx, add this to the scripts section in package.json:

    "wstart": "set NODE_ENV=production&& set NODE_PATH=./shared&& node --harmony .",
    "wdev": "set NODE_PATH=./shared&& node --harmony .",
    "wbuild": "set NODE_ENV=production&& webpack --progress --color -p --config webpack.prod.config.js"

That should do it. Now, to run the app in, say, a dev mode, type in the terminal npm run wdev.

zjdgx commented 8 years ago

@Dattaya thank you very much! It works for me! BTW, where did you get this code?

Dattaya commented 8 years ago

You are very welcome.

BTW, where did you get this code?

I made it myself.

zjdgx commented 8 years ago

Ok, thanks again!