react-bootstrap-webpack-starter

Full ES2015+ - ReactJS + React Router + Bootstrap + Hot Reload Starter

2 years after

Full ES2015+ React Bootstrap with Hot Reload STARTER

npm Build Status Coverage Status

ReactJS + Bootstrap starter with hot reload

full client and server side in ES6-ES2015

A simple full ES2015+.

preview here

Concept behind: this starter is an easy to understand and ready to use ReactJS (ES6) + bootstrap + webpack starter with:

  • no hard core Webpack config so it is more commonly understandable (they are numerous amazing starters with incredible webpack configs — hard core configs aren't bad things at all! —. This one is just for easier understanding for people even discovering webpack)
  • with hot reload (ReactJS + webpack => hot reload = WINNER)
  • no flux (yes, to give you freedom to add then since you may want to use something else like observables?)
  • no auth (simple starter that even fits for simple applications that don't need auth)
  • ReactJS Components written with optimization tricks (stateless, pure render...).

Breaking change since v0.5.0

ReactJS v15.4.x requires react-hot-loader to be v3+ (previous react-hot-loader was v1.x). So This starter had to include breaking changes to follow all of that.

Detailed Content

Front:

Tool chain:

  • babel 6+
  • eslint
  • hot reload
  • loaders
    • js / jsx
    • sass
    • css
    • json
    • images formats
    • svg and fonts formats
  • autoprefixer (css and sass)

tests:

  • Mocha
  • Chai (+ dirty-chai)
  • enzyme
  • Sinon
  • nyc

Usage

Install

npm install

bundle dev mode

General case:

npm run dev

Windows - particular - case:

npm run dev-win

dev : hot reload mode

General case:

npm run start

Windows - particular - case:

npm run start-win

tests

General case:

npm run test

Windows - particular - case:

npm run test-win

bundle production mode

General case:

npm run prod

Windows - particular - case:

npm run prod-win

To add

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.

Related Repositories

react-stylus-webpack-boilerplate

react-stylus-webpack-boilerplate

A starter kit for creating applications using react and stylus, client side rend ...

awesome-react

awesome-react

A collection of awesome React libraries, resources and shiny things. ...

react-redux-bootstrap-webpack-starter

react-redux-bootstrap-webpack-starter

React + React-Router + Redux + Bootstrap + Hot Reload + redux-devtools STARTER ...

meteor-react-redux-starter-kit

meteor-react-redux-starter-kit

Get started with Meteor, React, Redux, Webpack, and React-Router! ...

react-redux-graphql-apollo-bootstrap-webpack-starter

react-redux-graphql-apollo-bootstrap-webpack-starter

react js + redux + graphQL + Apollo + react router + hot reload + devTools + boo ...