/react-redux-bootstrap-webpack-starter

React 16.14 + Typescript + React-Router 5 + Redux + Bootstrap 4 + Hot Reload + redux-devtools-extension + Webpack 5 + styled-components STARTER

Primary LanguageHTML

React 16.14 (Typescript) React-Router 5 + Redux + Bootstrap + Webpack 5 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, hooks, 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

Detailed Content

Front:

Tool chain:

  • Typescript
  • eslint
  • webpack 5
  • hot reload
  • loaders
    • ts / tsx
    • css
    • json
    • images formats
    • svg and fonts formats

tests:

  • Jest
  • @testing-library/react

Changelog

Here

Usage

You can run development React SPA application with hot reload or run the production bundles served through NodeJS server.

NOTE: You don't need to worry about installing anything, just sit down keep cool and type any of these needed command.

Front developement (with hot reload)

# from root directory:
npm run front-dev

Application will be served at http://localhost:3001/ (just click me!)

Front unit tests

# from root directory:
npm run front-test

Front production bundle analyze

# from root directory:
npm run front-bundle-analyze

Bundle analyzer will launch on its own in your default browser

Serve production bundled application (front and NodeJS server)

# from root directory:
npm run start

Application will be served at http://localhost:8082/ (just click me!)

License

The MIT License (MIT)

Copyright (c) 2022 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