Coder Social home page Coder Social logo

cvs's Introduction

React Bootstrap webpack 3 with Hot Reload STARTER

npm Build Status Coverage Status

Sponsor

ReactJS + Bootstrap starter with hot reload

Full client and server side in ES6+-ES2015+

Concept behind: this starter is an easy way 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?)
  • with JWT auth
  • ReactJS Components written with optimization tricks (stateless, pure render...).

preview

Looking for server side rendering? check this project with SSR added here

HUGE Breaking changes since 3.0.0

  • upgrade to React 15.6.x
  • upgrade to webpack v3
  • add JWT authentication (protected route, logout components...)

HUGE Breaking changes since 2.1.0

  • upgrade to react-router v4

HUGE Breaking changes since 2.0.0

  • upgrade to webpack 2
  • remove autoprefixer in favor of postcss and cssnext
  • upgrade React to 15.5.4+
  • PropTypes comes now from prop-types
  • upgrade dependencies

If you prefer a webpack 1 version, version 1.1.0 is what you are looking for.

Detailed Content

Front:

Tool chain:

  • babel 6+
  • eslint
  • hot reload
  • loaders
    • js / jsx
    • sass
    • css
    • json
    • images formats
    • svg and fonts formats
  • postcss / cssnext

tests:

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

Usage

Install

npm install

or

yarn install

bundle dev mode

npm run dev

dev : hot reload mode

npm run start

tests

npm run test

bundle production mode

npm run prod

mini node-express server

with server hot reload (and dev bundle):

npm run serve-dev

without hot reload (and prod bundle):

npm run serve-prod

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.

cvs's People

Contributors

mackentoch avatar mwc320 avatar norgeous avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.