React 16.9+ (Typescript) React-Router 4 + Redux + Bootstrap + Webpack 4 with Hot Reload and redux-devtools-extension STARTER
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
butSEO
and/orPWA
friendly since use ofdynamic imports
andapplication snapshot
.
Concept behind: same as react-bootstrap-webpack-starter but added Redux
and amazing and helpful redux-devtools-extension.
Detailed Content
Front:
- Typescript
- React JS (16.9+ - github :link:)
- Redux (as you application grows managing state will be a serious concern, save pain with Redux)
- React-Redux (Redux is not specific to ReactJS, you could easily use it with Angular2 for instance)
- redux-devtools-extension (github :link:)
- connected-react-router 4 (github :link:)
- react-router (4.x- github :link:)
- Bootstrap (4.x - github :link:)
- reactstrap (github :link:)
- loadable-components - work with reactsnap for better static website performance - (stuck to pre v2.2.3+ breakings changes, waiting for a new solution see PR)
- font-awesome (github :link:)
- animate.css (github :link:)
- classnames (github :link:)
- react-motion (github :link:)
- Webpack 4.x (github :link:)
- axios (github :link: Why: simple, complete, isomorphic ...)
Tool chain:
- Typescript
- eslint
- webpack 4
- hot reload
- loaders
ts
/tsx
- css
- json
- images formats
- svg and fonts formats
tests:
- Jest
- enzyme
Changelog
Usage
Install
# from root directory:
cd front && yarn install
bundle dev mode (+ redux-devtools)
# from root directory:
cd front && yarn run dev
dev : hot reload mode (+ redux-devtools)
# from root directory:
cd front && yarn run start
tests
# from root directory:
cd front && yarn run test
bundle production mode
# from root directory:
cd front && yarn run prod
mini node-express server
⚠️Ensure having bundled the application before (result is in _ROOT_DIR_/docs
directory), then:
# from root directory:
# install dependencies the first time only:
cd server && yarn install
# run the server:
yarn run run-server # this will serve ROOT/docs content!
Donate
Do you use & like react-redux-bootstrap-webpack-starter but you don’t find a way to show some love?
If yes, please consider donating to support this project. Otherwise, no worries, regardless of whether there is support or not, I will keep maintaining this project. Still, if you buy me a cup of coffee I would be more than happy though ?
License
The MIT License (MIT)
Copyright (c) 2019 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.