An opinionated Next.js starter kit with Express, Redux Toolkit, styled-components, and react-testing-library.
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.
- β² 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...
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.
After npm run build finished, run
yarn serve
If you prefer using now, just modify now.json config.
βββ 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