It's the starter kit to build up universal structure of react with redux. We use as less code as we can to build up universal, I hope you will like it!
- Of course, React, Redux, Isomorphic(Universal), ES6, eslint, npm, node.
- redux-thunk => Help Redux do asynchronized actions.
- webpack-dev-middleware => Help react to do hot reload on client side.
- webpack-hot-middleware => Help you do hot reload in server-side.
- isomorphic-fetch => Use fetch in both client and server side.
- webpack-isomorphic-tools => Help you deal with some files in isomorphic structure, make it avaible on both client and server side.
- dotenv => Help you easily write configs.
- extract-text-webpack-plugin Extract all your css in one file for server-side use.
- Container Design Pattern of React Redux
Clone the repository
https://github.com/DumDumGeniuss/react-universal-redux-starter-kit.git react-universal-redux-starter-kit
Go into the directory
cd react-universal-redux-starter-kit
Delete the .git directory
rm -rf .git
Re-initialize the repository
git init
npm install
npm run start:dev
npm run start:prod
npm run eslint
Build up your react application image
docker build -t react-universal-redux-starter-kit .
Create container by the image, and run it, expose port
docker run -p 3000:3000 -d react-universal-redux-starter-kit
Then you can find your app on localhost:3000 (maybe few seconds)
###If you use Mac, sometimes you need to find your docekr vm ip rather than localhost
docker-machine ip
erikras/react-redux-universal-hot-example
Free, welcome to use it.