ReactJS + Bootstrap starter + react router v4 + webpack 2 with server side rendering (and hot reload for front dev)
This is a port of existing starter react-bootstrap-webpack-starter where I added server side rendering
.
Front:
- React JS (15.5.x - github 🔗)
- react-router (v4- github 🔗)
- Bootstrap (3.x - github 🔗)
- React-Bootstrap (github 🔗)
- font-awesome (github 🔗)
- animate.css (github 🔗)
- classnames (github 🔗)
- react-motion (github 🔗)
- Webpack 2.x (github 🔗)
- babel 6+ (github 🔗)
- axios (github 🔗 Why: simple, complete, isomorphic ...)
Tool chain:
- babel 6+
- eslint
- webpack 2.x
- hot reload
- loaders
js
/jsx
- sass
- css
- json
- images formats
- svg and fonts formats
- postcss (postcss-next)
tests:
- Mocha
- Chai (+ dirty-chai)
- enzyme
- Sinon
- nyc
npm install
Or yarn way:
yarn install
npm run dev
npm run start
npm run test
npm run prod
npm run serve-spa
Note: it is the same as npm run serve
but it automatically run a prod bundle before starting server
npm run serve-ssr
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.