Next.js redux starter
An opinionated Next.js starter kit with Express, Redux Toolkit, styled-components, and react-testing-library.
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