Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mackentoch/react-redux-nextjs-bootstrap-pwa-starter
a progressive web app starter with next js redux + redux-persist + bootstrap
https://github.com/mackentoch/react-redux-nextjs-bootstrap-pwa-starter
boilerplate next nextjs progressive-web-app pwa react react16 redux redux-persist starter
Last synced: about 1 month ago
JSON representation
a progressive web app starter with next js redux + redux-persist + bootstrap
- Host: GitHub
- URL: https://github.com/mackentoch/react-redux-nextjs-bootstrap-pwa-starter
- Owner: MacKentoch
- License: other
- Created: 2017-10-18T18:50:04.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-28T12:04:22.000Z (almost 2 years ago)
- Last Synced: 2023-04-16T11:12:18.069Z (over 1 year ago)
- Topics: boilerplate, next, nextjs, progressive-web-app, pwa, react, react16, redux, redux-persist, starter
- Language: JavaScript
- Homepage: https://react-redux-nextjs-bootstrap-pwa-starter-nfxmkkccof.now.sh
- Size: 5.44 MB
- Stars: 70
- Watchers: 4
- Forks: 14
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# PWA: Next JS + Redux + Redux persist + redux-devtools-extension + Bootstrap starter
> A progressive web app starter with NextJS, redux and bootstrap
[![license](https://img.shields.io/github/license/mashape/apistatus.svg)](https://github.com/MacKentoch/react-redux-nextjs-bootstrap-pwa-starter)
![preview](./preview.png)
## Lighthouse tests
- v0.1.1
![lighthouse-0.1.1](./lighthouse-0.1.1.png)
_a bit better for not that much efforts. Performance score would be far better without using bootstrap (actully fetched from https://maxcdn.bootstrapcdn.com)_- v0.0.1 (_first version: with no optimizations!_)
![lighthouse-test](./lighthouse-test.png)
_pretty nice for an out of the box starting PWA starter!_## Detailed Content
**Front:**
- Next js (9.x+ [github :link:](https://github.com/zeit/next.js))
- React JS (16.8.x+ - [github :link:](https://github.com/facebook/react))
- redux (_as your application grows managing state will be a serious concern, save pain with Redux_)
- redux-persist 5.x (_simplifies your NextJS state share between pages_ [github :link:](https://github.com/rt2zz/redux-persist))
- localForage
- react-redux (_Redux is not specific to ReactJS, you could easily use it with Angular2 for instance_)
- redux-thunk (_simple and does the job_)
- next-redux-wrapper
- redux-devtools-extension ([github :link:](https://github.com/zalmoxisus/redux-devtools-extension#redux-devtools-extension))
- reactstrap ([github :link:](https://github.com/reactstrap/reactstrap))
- axios ([github :link:](https://github.com/mzabriskie/axios) _Why: simple, complete, isomorphic ..._)**Tool chain:**
- Next js (9.x+ [github :link:](https://github.com/zeit/next.js))
- Babel 7+ (*custom babel*)
- Flow JS types**fav icon:**
- favicons generated by [realfavicongenerator](https://realfavicongenerator.net/)
## Usage
**IMPORTANT: `Next JS` when `redux` connected**
- **you are forced to connect each page** (_even if you don't need redux in that page_) with `withRedux` from `next-redux-wrapper` (_[see page1 as an example](https://github.com/MacKentoch/react-redux-nextjs-bootstrap-starter/blob/master/pages/page1.js)_).
- **each sub component you may want to connect** should be connected by usual `connect` from `redux` (_[see Header component as an example](https://github.com/MacKentoch/react-redux-nextjs-bootstrap-starter/blob/master/components/header/Header.js)_)**IMPORTANT: use Layout component on each Page:**
- Layout is the **Layout** (_better to my mind than using `_document`_) of each page
- Layout component will **register the service worker** (_registering an already registered service worker is no effect but ensures it will register at any page user would enter the application_)### Install
```bash
yarn install
```### Scripts
run dev with hot reload
Clone this repository, then install dependencies:
```bash
yarn run start
```build dev bundle
```bash
yarn run build
```start dev (no hot reload)
_NOTE: ensure you built first before starting_
```bash
yarn run start
```## Donate
Do you use & β€οΈ `react-redux-nextjs-bootstrap-pwa-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 π[![Support via PayPal](./assets/Paypal-button.png)](https://www.paypal.me/ErwanDatin/)
## 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.