Awesome
Next.js redux starter
An opinionated Next.js starter kit with Express, Redux Toolkit, styled-components, and react-testing-library.
About
Next.js is an awesome and minimalistic framework to make a modern universal react app. However, there're times that we need a bit more features to build a complex SPA. That's why this project is born.
Features
- ā² Based on latest Next.js
- š State management with redux-toolkit
- š Styling with styled-components
- š Unit testing with react-testing-library
- š Linting staged changes on pre-commit with standard
- ā react-helmet, dotenv, and more...
Getting started
git clone https://github.com/CodementorIO/nextjs-redux-starter my-project
cd my-project
yarn install
yarn start
Then open http://localhost:3100/
to see your app.
Deployment
After npm run build
finished, run
yarn serve
If you prefer using now
, just modify now.json
config.
Structure overview
āāā README.md
āāā next.config.js
āāā now.json
āāā package.json
āāā pages
āĀ Ā āāā _app.js
āĀ Ā āāā _document.js
āĀ Ā āāā about.js
āĀ Ā āāā index.js
āāā public
āĀ Ā āāā static
āāā server
āĀ Ā āāā index.js
āāā src
āĀ Ā āāā components
āĀ Ā āāā config.js
āĀ Ā āāā features
āĀ Ā āāā libs
āĀ Ā āāā store.js
āĀ Ā āāā tests
āĀ Ā āĀ Ā āāā components
āĀ Ā āĀ Ā āāā test-utils.js
āĀ Ā āāā theme.js
āāā yarn.lock