Setting up a nextjs app with dependencies and boilerplate can be time consuming. This boilerplate will provide the necessary set up for you. It uses redux for state management, next-redux-wrapper to assist with managing state between the client and server, and redux-toolkit to help write redux logic. A basic counter is implemented to show state management with redux. Basic layout and dynamic links are also implemented.
- nextjs
- next-redux-wrapper
- react
- react-dom
- redux
- react-redux
- reduxjs toolkit
- redux thunk
- redux devtools extension
- prettier
- esling-config-prettier
Feel free to clone down this repo and play around with the code. In order to get this repo to work, the following will need to be done.
git clone https://github.com/daveeS987/nextjs-wrapper-redux-toolkit-boilerplate.git
cd nextjs-wrapper-redux-toolkit-boilerplate
npm install
To run site locally, use:
npm run dev
To run it in production mode, use:
npm build
npm start