universal-webpack-boilerplate
universal-webpack-boilerplate copied to clipboard
universal-webpack-boilerplate
This is a boilerplate of a project built with react and redux, based on universal-webpack.
This project is a massive rework of this boilerplate with some ideas taken from this project
Feautures
- Universal (server) rendering
- Webpack 2
- Fully immutable state
- ESLINT
- react-router 3
- react-hot-loader 3
- Own component for supporting native gettext localization
Installation
-
npm install -
Create a file called config.js inside src/config/ with such content
export default {};In this file you can override any variable defined inside src/config/default.js following the same name path
-
Create an empty file called .env inside the root of the project. In this file you can define any PATH variables which you don't want to specify every time you run the server
For more - see this
-
npm run devornpm run production