https://github.com/mackentoch/react-redux-immutable-webpack-ssr-starter
React + React-Router 4 + Redux + ImmutableJS + Bootstrap + webpack 3 with with Server side rendering, Hot Reload and redux-devtools STARTER
https://github.com/mackentoch/react-redux-immutable-webpack-ssr-starter
boilerplate bootstrap chai immutable immutablejs mocha react-bootstrap react-hot-loader-3 react-hot-loader3 reactjs redux redux-devtools ssr starter starter-project starter-template webpack webpack3
Last synced: 4 months ago
JSON representation
React + React-Router 4 + Redux + ImmutableJS + Bootstrap + webpack 3 with with Server side rendering, Hot Reload and redux-devtools STARTER
- Host: GitHub
- URL: https://github.com/mackentoch/react-redux-immutable-webpack-ssr-starter
- Owner: MacKentoch
- Created: 2017-07-16T10:40:40.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-30T05:27:24.000Z (over 7 years ago)
- Last Synced: 2025-02-01T08:06:04.696Z (5 months ago)
- Topics: boilerplate, bootstrap, chai, immutable, immutablejs, mocha, react-bootstrap, react-hot-loader-3, react-hot-loader3, reactjs, redux, redux-devtools, ssr, starter, starter-project, starter-template, webpack, webpack3
- Language: JavaScript
- Homepage:
- Size: 3.44 MB
- Stars: 21
- Watchers: 5
- Forks: 8
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
React + React-Router + Redux + ImmutableJS + Bootstrap with with Server side rendering, Hot Reload and redux-devtools-extension STARTER
==========> My React + Redux + Immutable + React-Router + Bootstrap + webpack project starter with server side rendering.
- *webpack is as simple as possible*
- *ReactJS + Redux + React Router all immutable (all components extend PureComponent).*
- *`pure front-end` = server independant (use whatever you want as server: NodeJS, Rails, .NET...)*
- server side redering
## Detailed Content
**Front:**
- React JS (15.6.x - [github :link:](https://github.com/facebook/react))
- Redux (*as you application grows managing state will be a serious concern, save pain with Redux*)
- React-Redux (*Redux is not specific to ReactJS, you could easily use it with Angular2 for instance*)
- Immutable JS
- redux-immutable
- redux-devtools-extension ([github :link:](https://github.com/zalmoxisus/redux-devtools-extension#redux-devtools-extension))
- React-Router-Redux (*previously named react-simple-router*)
- react-router (4.x- [github :link:](https://github.com/reactjs/react-router))
- Bootstrap (3.x - [github :link:](https://github.com/twbs/bootstrap))
- React-Bootstrap ([github :link:](https://github.com/react-bootstrap/react-bootstrap))
- font-awesome ([github :link:](https://github.com/FortAwesome/Font-Awesome))
- animate.css ([github :link:](https://github.com/daneden/animate.css))
- classnames ([github :link:](https://github.com/JedWatson/classnames))
- react-motion ([github :link:](https://github.com/chenglou/react-motion))
- Webpack 3.x ([github :link:](https://github.com/webpack/webpack))
- babel 6+ ([github :link:](https://github.com/babel/babel))
- axios ([github :link:](https://github.com/mzabriskie/axios))**Tool chain:**
- babel 6+
- eslint
- webpack 3.x
- hot reload
- loaders
- `js` / `jsx`
- sass
- css
- json
- images formats
- svg and fonts formats
- postcss**tests:**
- Mocha
- Chai (*+ dirty-chai*)
- enzyme
- Sinon
- nyc## Usage
This starter is build with `NodeJS 8.1.4` (*as stated in [engines section of package.json](https://github.com/MacKentoch/react-redux-immutable-webpack-ssr-starter/blob/master/package.json#L6)*)
Ensure you have a matching node version (*[nvm](https://github.com/creationix/nvm) is your friend. If you need help to install and use nvm [check my gist](https://gist.github.com/MacKentoch/42be82e7f34f03edcc018b80406ca0be) :+1:*)
### Install
```bash
npm install
```
### bundle dev mode (*+ redux-devtools*)```bash
npm run dev
```### dev : hot reload mode (*+ redux-devtools*)
```bash
npm run start
```### tests
```bash
npm run test
```### bundle production mode
```bash
npm run prod
```### mini node-express server for SPA
with server hot reload (*nodemon*) and dev bundle:
```bash
npm run serve-spa-dev
```without hot reload and prod bundle:
```bash
npm run serve-spa-prod
```### SSR server (prod bundle)
```bash
npm run serve-ssr
```## License
The MIT License (MIT)
Copyright (c) 2017 Erwan DATIN
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.