Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
An opinionated Next.js starter kit with Express, Redux Toolkit, styled-components, and react-testing-library.
Next.js Redux Starter is a boilerplate template for building universal React applications on top of Next.js, combining Redux Toolkit, styled-components, Express, and react-testing-library.
Next.js Redux Starter is an opinionated starter kit that scaffolds a Next.js project with a custom Express server, Redux Toolkit for state management, styled-components for styling, and react-testing-library for unit tests. It takes no input: you clone the repository, install dependencies, and run the development server to get a working application with index and about pages. The project is maintained by CodementorIO and published on GitHub.
src/store.js.src/theme.js.src/tests/test-utils.js.server/index.js for handling SSR and middleware.pre-commit and standard.The structure includes pages/index.js and pages/about.js as sample routes, plus custom _app.js and _document.js for application and document overrides. Additional folders like src/components, src/features, and src/libs give a clear place for components, Redux slices, and utility functions.
Developers starting a new universal React app who want a pre-configured Redux and styled-components stack are the primary audience. Teams that value testing and code consistency will benefit from the included react-testing-library setup and StandardJS linting. Developers needing a custom Express server alongside Next.js for SSR or API routes can use this as a foundation.
yarn install to get a working Next.js app with Redux, styled-components, and testing configured.npm run build and then yarn serve to serve the production build, or modify now.json to deploy with ZEIT Now.src/features, components under src/components, and utilities under src/libs following the preset structure.To start, clone the repository, run yarn install, then yarn start to launch the development server on http://localhost:3100. For production, execute npm run build followed by yarn serve. The Express server in server/index.js handles both development and production serving, and the Next.js pages render through the custom server.
Free — the starter kit is open source on GitHub and can be cloned and used without cost.
Yes, it is an open-source starter kit published on GitHub, so you can clone it and use it in your projects without any licensing costs.
The starter includes Next.js, Redux Toolkit, styled-components, an Express custom server, react-testing-library, react-helmet, dotenv, and a pre-commit linting setup with StandardJS.
Clone the repository, run yarn install, then yarn start. Open http://localhost:3100 in your browser to see the app.
Run npm run build to create a production build, then use yarn serve to serve it locally with the Express server. Alternatively, modify now.json and deploy with ZEIT Now.
The starter includes an index page and an about page, along with custom _app.js and _document.js files for application-level and document-level configuration.
