This template is for Next based web applications using Redux store and App Router configuration. This template has tests for React components, reducers, hooks. There is a basic Promise resolver middleware example.
Static html deployment: Github pages
Full-featured deployment: Vercel
- Written Typescript.
 - Powered by Nextjs.
 - Configured to use App router.
 - Redux with DevTools support.
 - Promise resolving Redux middleware example.
 - Generate components and features from CLI.
 - pnpm for fast package management.
 - Husky for git hooks.
 - Eslint and stylelint.
 - Jest and react-testing-library for testing.
 - Supports CSS Modules and Styled components.
 
- Install Node >= 20.x.
 - Install pnpm. E.g. 
corepack prepare pnpm@latest --activate. 
Manually clone repo or use degit.
# With CSS Modules config
npx degit github:morewings/ts-redux-next my-app
# With Styled Components config
npx degit github:morewings/ts-redux-next#styled-components my-app
cd ./my-app
pnpm iTemplate uses generate-react-cli. Templates are located at ./templates folder.
pnpm run generate:component FooCreates all necessary React component files in ./src/components/Foo.
pnpm run generate:component-loading FooCreates React component files for component with dynamically loading content in ./src/components/Foo.
pnpm run generate:feature FooCreates reducer, React hooks accessing global state and selectors inside in ./src/features/Foo.
pnpm run generate:page FooCreates Next App router compatible page in ./app/Foo folder.
You can find all changes inside this PR and styled-components branch.
