Next.jsReact启动器

ts-redux-next — Next.js 启动器模板

作者 morewings

基于 Next.js App Router 的 TypeScript 模板,集成 Redux 状态管理、Promise 中间件示例、组件与功能生成脚本,以及 Jest 测试配置。

看看你的网站会是什么样

浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。

2 个预览视图
桌面端首页1 / 2
桌面端截图首屏预览

由服务器浏览器实际访问页面后截取。

全部页面与视图 2

截图用于了解视觉与布局,交互效果请以实际项目为准。

采集于 2026-10-13查看来源

值得关注的模板亮点

从已有项目资料中,快速了解它的特点。

01

使用 TypeScript 编写,基于 Next.js 并配置 App Router

02

集成 Redux 并支持 DevTools,附带 Promise resolver 中间件示例

03

包含 React 组件、reducer 与 hooks 的 Jest 和 react-testing-library 测试

04

提供 CLI 生成组件、动态加载组件、功能模块和页面

05

使用 pnpm 管理依赖,配置 Husky、ESLint 和 stylelint

06

支持 CSS Modules 与 Styled Components 两种样式方案

模板详细介绍

该模板面向使用 Next.js App Router 与 Redux 的 Web 应用开发。README 说明其包含 React 组件、reducer 与 hooks 的测试,并提供一个基础的 Promise resolver Redux 中间件示例。模板使用 TypeScript 编写,通过 pnpm 管理依赖,配置了 Husky、ESLint 与 stylelint,同时支持 CSS Modules 和 Styled Components 两种样式方案。

模板提供 CLI 生成能力,可创建组件、动态加载组件、功能模块(含 reducer、hooks 与 selectors)以及 App Router 兼容页面。安装方式支持手动克隆或使用 degit,并可通过指定分支切换到 Styled Components 配置。README 未提供关于性能、生产就绪程度或具体框架版本号的说明。

Next.js启动器

适合你的项目吗?

适用场景

  • 需要基于 Next.js App Router 搭建带 Redux 状态管理的新项目
  • 希望使用 CLI 快速生成组件、功能模块和页面结构
  • 需要为 React 组件、reducer 和 hooks 编写测试的起步配置
  • 需要在 CSS Modules 与 Styled Components 之间选择样式方案的项目

适合人群

  • 使用 Next.js App Router 与 Redux 的 TypeScript 项目开发者
  • 希望以模板方式快速初始化项目结构的团队
  • 需要组件与功能模块生成脚本和测试配置的开发者

上手与定制指南

结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。

  1. 1

    需要安装 Node >= 20.x 和 pnpm。

  2. 2

    可通过 npx degit github:morewings/ts-redux-next my-app 克隆默认 CSS Modules 配置,或使用 #styled-components 分支获取 Styled Components 配置。

  3. 3

    进入项目目录后运行 pnpm i 安装依赖。

  4. 4

    使用 pnpm run generate:component、generate:component-loading、generate:feature、generate:page 等命令生成对应文件。

  5. 5

    README 未提供具体的部署步骤说明。

查看仓库使用说明

授权与来源资料

使用条件与限制

免费使用 · 保留许可声明

本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。

使用时需要遵守

  • 允许免费使用、修改、商用和分发该版本代码。
  • 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
  • 代码按现状提供;担保与责任限制以原许可证及适用法律为准。

额外费用与待核对事项

  • 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
  • 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
  • 使用前需安装 Node.js 20.x 或更高版本。
  • 需安装 pnpm 包管理器,例如通过 corepack 激活。
  • 默认使用 CSS Modules 配置,通过 degit 克隆主分支。
  • 如需 Styled Components 配置,需改用 styled-components 分支克隆。
查看原文依据

Permission is hereby granted, free of charge

许可证原文

1. Install **Node** >= 20.x.

README 原文

2. Install **pnpm**. E.g. `corepack prepare pnpm@latest --activate`.

README 原文

npx degit github:morewings/ts-redux-next my-app

README 原文

npx degit github:morewings/ts-redux-next#styled-components my-app

README 原文
https://github.com/morewings/ts-redux-next/blob/master/LICENSEhttps://github.com/morewings/ts-redux-next/blob/master/README.md

DeepSeek 根据仓库许可证和 README 整理 ·2026-10-13。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。

项目核对记录与介绍依据

模板资料

来源平台
GitHub
资料与维护参考分
资料较完整 · 83 / 100
技术栈
Next.js · React
网站类型
启动器
这个分数如何计算

本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。

这个项目需要核对什么

记录的仓库更新时间
2026-10-13
截图检查日期
2026-10-13

已收录演示链接。请用你的内容与屏幕尺寸检查;有演示不代表表单、认证或支付已经可用。

目录记录的主要技术栈是 Next.js。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。

查看具体选型方法 →

介绍的制作与核对状态

介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。

审核声明: codex-user-requested-batch-review-20261015 · 2026-10-15

查看当时使用的来源资料

SHA-256: 50b5f4aa6a8a0ff04ff705ed3346a18dc025c29f6c4a016fd9f26b7ca7fd5955

2026-10-13T23:11:08.016Z

来源文件 / 仓库
[![Deploy to GitHub Pages](https://github.com/morewings/ts-redux-next/actions/workflows/pages.yml/badge.svg)](https://github.com/morewings/ts-redux-next/actions/workflows/pages.yml)
[![Post-merge tasks](https://github.com/morewings/ts-redux-next/actions/workflows/merge-jobs.yml/badge.svg)](https://github.com/morewings/ts-redux-next/actions/workflows/merge-jobs.yml)
[![Vercel](https://vercelbadge.vercel.app/api/morewings/ts-redux-next)](https://vercel.com/dima-vyshniakovs-projects/ts-redux-next)

# Redux enabled Next template

[![TS Redux Next](./design/cover.jpg)](#)

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](https://morewings.github.io/ts-redux-next/)

Full-featured deployment: [Vercel](https://ts-redux-next.vercel.app/)

## Features

- 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**.

## Quickstart

### Prerequisites

1. Install **Node** >= 20.x.
2. Install **pnpm**. E.g. `corepack prepare pnpm@latest --activate`.


### Installation

Manually clone repo or use `degit`.

```shell script
# 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 i
```

## Generate components and features

Template uses [generate-react-cli](https://www.npmjs.com/package/generate-react-cli). Templates are located at `./templates` folder.

```shell script
pnpm run generate:component Foo
```

Creates all necessary React component files in `./src/components/Foo`. 

```shell script
pnpm run generate:component-loading Foo
```

Creates React component files for component with dynamically loading content in `./src/components/Foo`. 

```shell script
pnpm run generate:feature Foo
```

Creates reducer, React hooks accessing global state and selectors inside in `./src/features/Foo`. 

```shell script
pnpm run generate:page Foo
```

Creates Next App router compatible page in `./app/Foo` folder.

## Enable Styled components

You can find all changes inside this [PR](https://github.com/morewings/ts-redux-next/pull/40) and [styled-components](https://github.com/morewings/ts-redux-next/tree/styled-components) branch.

## Previous implementations

[cra-template-quickstart-redux](https://github.com/morewings/cra-template-quickstart-redux)

[react-template](https://github.com/morewings/react-template)

反馈内容错误

看看同类模板

对比同技术栈与用途的模板,找到更适合的视觉与内容结构。