Giter Site home page Giter Site logo

sweetymeow / react-redux-bootstrap-webpack-starter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mackentoch/react-redux-bootstrap-webpack-starter

0.0 1.0 0.0 7.26 MB

React 16.3 + React-Router 4 + Redux + Bootstrap 3 + Hot Reload + redux-devtools-extension + Webpack 4 + styled-components STARTER

HTML 0.84% JavaScript 99.16%

react-redux-bootstrap-webpack-starter's Introduction

React 16.3+ React-Router 4 + Redux + Bootstrap + Webpack 4 with Hot Reload and redux-devtools-extension STARTER

license Build Status Coverage Status

My best React + redux project starter.

  • webpack is as simple as possible
  • ReactJS is written with optimization tricks (stateless, pure render, PureComponent...).
  • pure front-end = server independant (use whatever you want as server: NodeJS, Rails, .NET...)
  • SPA but SEO and/or PWA friendly since use of dynamic imports and application snapshot.

Concept behind: same as react-bootstrap-webpack-starter but added Redux and amazing and helpful redux-devtools-extension.

preview FOSSA Status

Breaking changes since v6.0.0

  • upgrade to React 16.3.x
  • upgrade to webpack 4
  • upgrade to react-hot-loader v4
  • drop CSS Module in favor of styled-components (scoped style, theme support, better scaling in huge applications, simplify toolchain and keep nearly SASS syntax)
  • add flow types (even a little typing at least for better dev experience)
  • drop prop-types(static and dynamic typing apart, flow type does far more so avoid writing 2 differents typing system)
  • workbox-webpack-plugin (service worker caching powerful tool from Google)
  • loadable-components (split your code: here splitted just by routes, by you can split a component level if you feel the need)
  • react-snaphot (SEO friendly)
  • webpack-bundle-analyzer: analyze your bundle size (maybe you should split or lazy load some part of your application: you will see clearly how to fix that)
  • drop moment for date-fns (since far smaller size and job's done)
  • drop mocha and all library around it for jest (all in one toolset and snapshot testing)

Breaking changes since v5.0.0

Breaking changes since v4.0.0

  • upgrade React 15.6.x +
  • upgrade to webpack 3
  • clean with rimraf before bundles building
  • scroll to top on route
  • login view
  • protected view
  • JWT auth. private views
  • file organization (views connected to redux are no more in container but are index.js in same directory as View.js)

Breaking changes since v3.0.0

  • upgrade to react-router v4

Breaking changes since v2.3.0

  • upgrade to webpack 2.x
  • upgrade React 15.5.x +
  • PropTypes from 'prop-types' (react 15.5 breaking change)

Breaking changes since v2.2.0

  • cross-env added so no more particular windows command
  • serve dev and prod bundles
  • npm run serve-dev: with server hot reload (uses nodemon)
  • npm run serve-prod: production like node-express server

Breaking changes since v2.1.0

  • whatwg-fetch is now replaced by axios.
  • react-addons-shallow-compare is removed since ReactJS 15.4+ PureComponent does the job
  • splits vendors script and css from main bundle (extract-text-webpack-plugin v1.x)
  • create map file (DEV)
  • prepared launch.json for VSCode debugger
  • add typescript types (typings)
  • add flow types (flow-typed)

Breaking changes since v2.0.0

Detailed Content

Front:

Tool chain:

  • babel 6+
  • eslint
  • webpack 4
  • hot reload
  • loaders
    • js / jsx
    • css
    • json
    • images formats
    • svg and fonts formats

tests:

  • Jest
  • enzyme

Usage

Install

npm install

bundle dev mode (+ redux-devtools)

npm run dev

dev : hot reload mode (+ redux-devtools)

npm run start

tests

npm run test

bundle production mode

npm run prod

mini node-express server (for dev or prod bundles)

with server hot reload:

npm run serve-dev

without hot reload:

npm run serve-prod

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.

FOSSA Status

react-redux-bootstrap-webpack-starter's People

Contributors

mackentoch avatar roytruelove avatar fossabot 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.