Next.jsReact后台SaaS启动器

saas-starter-dashboard — Next.js 后台模板

作者 AbdulrahmanMasoud

基于 Next.js 的后台仪表盘启动器,集成 Prisma 与 MySQL,提供认证、用户管理、内容管理、媒体库、订阅、邮件、通知、设置与数据分析等模块,适合搭建 SaaS 应用、管理后台与内容管理系统。

看看你的网站会是什么样

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

1 个预览视图
作者提供的预览
作者提供的预览

来自项目 README 的原始预览。

目前有 1 张原始预览,可打开完整图片查看设计细节。

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

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

值得关注的模板亮点

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

01

基于 Next.js App Router 与 TypeScript 构建,使用 Prisma 连接 MySQL 数据库

02

内置 NextAuth.js 认证与基于角色的访问控制,支持细粒度权限

03

覆盖用户管理、内容管理、媒体库、订阅、邮件、通知与设置等后台模块

04

提供分析仪表盘,包含统计卡片、Recharts 图表、活动日志与页面浏览追踪

05

支持将数据库完整备份为 JSON 并恢复

06

附带文档目录,涵盖安装、配置、功能、API、数据库 schema 与部署说明

模板详细介绍

这是一个面向后台场景的全栈启动器模板,仓库采用 MIT 许可,代码可免费使用、修改、商用和分发,分发时需保留版权与许可声明。技术栈以 Next.js(App Router)与 TypeScript 为主,数据库使用 MySQL 配合 Prisma,认证基于 NextAuth.js 的 JWT 会话,界面层使用 shadcn/ui 与 Radix UI,样式为 Tailwind CSS,表单校验使用 React Hook Form 与 Zod,富文本使用 TipTap,图表使用 Recharts,表格使用 TanStack Table,邮件通过 Nodemailer 发送,状态管理使用 Zustand。

功能覆盖较完整:认证与授权支持基于角色的访问控制以及细粒度权限;用户管理提供 CRUD、角色与权限分配和活动记录;内容管理包含文章、分类、标签、富文本编辑与 SEO 元数据;媒体库支持文件上传、文件夹组织与元数据记录;订阅系统包含定价方案、计费周期与试用支持;邮件系统提供模板化邮件、变量替换、SMTP 配置与投递日志;通知支持实时推送与用户偏好设置;设置管理按分组管理站点配置、外观、安全与集成;分析仪表盘包含统计卡片、图表、活动日志与页面浏览追踪;另提供将数据库完整备份为 JSON 并恢复的能力。项目结构包含 Prisma schema、API 路由、仪表盘页面、认证页面、UI 组件、校验 schema、邮件服务与自定义 hooks,并附带文档目录。

使用前需注意:模板要求 Node.js 18+ 与 MySQL 8+,需配置 DATABASE_URL、NEXTAUTH_URL、NEXTAUTH_SECRET 与 NEXT_PUBLIC_SITE_URL 等环境变量,并执行 Prisma 迁移与可选的种子数据。README 中提供的演示账号仅用于本地演示。演示图片、字体、图标等第三方素材需按各自许可核对,域名、托管、数据库、支付或 AI 等外部服务可能另行收费。

Next.js后台SaaS启动器

适合你的项目吗?

适用场景

  • 搭建 SaaS 产品的管理后台与用户管理界面
  • 构建内容管理系统,管理文章、分类、标签与媒体文件
  • 为内部系统提供带角色与权限控制的后台仪表盘
  • 需要订阅计费、邮件通知与站点设置模块的后台项目

适合人群

  • 使用 Next.js 与 MySQL 技术栈的后台项目开发者
  • 需要快速搭建带认证与权限体系的管理后台的团队
  • 希望以 MIT 许可代码为基础进行二次开发的个人或组织

上手与定制指南

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

  1. 1

    需要 Node.js 18+ 与 MySQL 8+ 环境

  2. 2

    配置 DATABASE_URL、NEXTAUTH_URL、NEXTAUTH_SECRET 与 NEXT_PUBLIC_SITE_URL 等环境变量

  3. 3

    执行 npx prisma migrate dev 完成数据库迁移,可选执行 npx prisma db seed 填充种子数据

  4. 4

    演示账号([email protected] / admin123、[email protected] / editor123)仅用于本地演示

  5. 5

    演示图片、字体、图标等第三方素材需按各自许可核对,外部服务可能另行收费

查看仓库使用说明

授权与来源资料

使用条件与限制

免费使用 · 保留许可声明

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

使用时需要遵守

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

额外费用与待核对事项

  • 使用需自备 Node.js 18+ 与 MySQL 8+ 运行环境,并自行搭建数据库服务。
  • 必须自行配置 DATABASE_URL 等环境变量并连接自有 MySQL 数据库,否则无法运行。
  • 需自行生成并配置 NEXTAUTH_SECRET 等认证密钥,属于部署方责任。
  • 首次使用需执行 Prisma 迁移(可选种子数据)初始化数据库结构。
  • README 提供的演示账号仅用于本地演示,不可用于生产环境。
  • 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
  • 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据

Permission is hereby granted, free of charge

许可证原文

- Node.js 18+ - MySQL 8+

README 原文

DATABASE_URL="mysql://root:password123@localhost:3306/db_name"

README 原文

NEXTAUTH_SECRET="secret-key"

README 原文

npx prisma migrate dev

README 原文

| Admin | [email protected] | admin123 |

README 原文
https://github.com/AbdulrahmanMasoud/saas-starter-dashboard/blob/main/LICENSEhttps://github.com/AbdulrahmanMasoud/saas-starter-dashboard/blob/main/README.md

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

项目核对记录与介绍依据

模板资料

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

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

这个项目需要核对什么

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

目前没有记录演示链接。请依据仓库说明在本地评估;仅凭截图无法确认交互行为。

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

查看具体选型方法 →

介绍的制作与核对状态

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

已完成服务器许可规则与 AI 来源核对;未经过人工编辑审核。

查看当时使用的来源资料

SHA-256: 284e53b9a710114e7a667fe59f720d4b93aa9c2d9f5164143707c70c698b010d

2026-10-02T14:00:53.066Z

来源文件 / 仓库
# Taqnihub Fullstack Starter Dashboard

[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
[![Next.js](https://img.shields.io/badge/Next.js-16-black)](https://nextjs.org/)
[![TypeScript](https://img.shields.io/badge/TypeScript-5-blue)](https://www.typescriptlang.org/)
[![Prisma](https://img.shields.io/badge/Prisma-6-2D3748)](https://www.prisma.io/)
[![Tailwind CSS](https://img.shields.io/badge/Tailwind-4-38B2AC)](https://tailwindcss.com/)

A production-ready, full-featured dashboard starter built with Next.js 16, Prisma, and MySQL. Perfect for SaaS applications, admin panels, and content management systems.

![Dashboard Preview](docs/assets/dashboard-preview.png)

## Features

- **Authentication & Authorization** - NextAuth.js with JWT sessions, role-based access control (RBAC), and 55+ granular permissions
- **User Management** - Complete user CRUD with roles, permissions, and activity tracking
- **Content Management** - Posts with categories, tags, rich text editor (TipTap), and SEO metadata
- **Media Library** - File uploads with folder organization and metadata tracking
- **Subscription System** - Pricing plans, billing periods, trial support, and subscription management
- **Email System** - Template-based emails with variable substitution, SMTP configuration, and delivery logs
- **Notifications** - Real-time notifications with user preferences and multiple categories
- **Settings Management** - Grouped settings for site configuration, appearance, security, and integrations
- **Analytics Dashboard** - Stats cards, charts (Recharts), activity logs, and page view tracking
- **Backup & Restore** - Full database backup to JSON with restore capability

## Tech Stack

| Category | Technology |
|----------|------------|
| Framework | [Next.js 16](https://nextjs.org/) (App Router) |
| Language | [TypeScript 5](https://www.typescriptlang.org/) |
| Database | [MySQL 8](https://www.mysql.com/) + [Prisma 6](https://www.prisma.io/) |
| Authentication | [NextAuth.js 5](https://next-auth.js.org/) (Beta) |
| UI Components | [shadcn/ui](https://ui.shadcn.com/) + [Radix UI](https://www.radix-ui.com/) |
| Styling | [Tailwind CSS 4](https://tailwindcss.com/) |
| Forms | [React Hook Form](https://react-hook-form.com/) + [Zod](https://zod.dev/) |
| Rich Text | [TipTap](https://tiptap.dev/) |
| Charts | [Recharts](https://recharts.org/) |
| Data Tables | [TanStack Table](https://tanstack.com/table) |
| Email | [Nodemailer](https://nodemailer.com/) |
| State | [Zustand](https://zustand-demo.pmnd.rs/) |

## Quick Start

### Prerequisites

- Node.js 18+
- MySQL 8+
- npm, pnpm, or yarn

### Installation

```bash
# Clone the repository
git clone https://github.com/taqnihub/dashboard-starter.git
cd dashboard-starter

# Install dependencies
npm install

# Set environment file
# Database
DATABASE_URL="mysql://root:password123@localhost:3306/db_name"
# NextAuth
NEXTAUTH_URL="http://localhost:3000"
NEXTAUTH_SECRET="secret-key"
# Site URL
NEXT_PUBLIC_SITE_URL="http://localhost:3000"


# Run database migrations
npx prisma migrate dev

# Seed the database (optional)
npx prisma db seed

# Start development server
npm run dev
```

Open [http://localhost:3000](http://localhost:3000) in your browser.

### Demo Credentials

| Role | Email | Password |
|------|-------|----------|
| Admin | [email protected] | admin123 |
| Editor | [email protected] | editor123 |

## Documentation

- [Getting Started](docs/getting-started.md) - Installation and setup guide
- [Configuration](docs/configuration.md) - Environment variables and settings
- [Features](docs/features/) - Detailed feature documentation
  - [Authentication](docs/features/authentication.md)
  - [Content Management](docs/features/content-management.md)
  - [Media Library](docs/features/media-library.md)
  - [User Management](docs/features/user-management.md)
  - [Subscriptions](docs/features/subscriptions.md)
  - [Email System](docs/features/email-system.md)
  - [Settings](docs/features/settings.md)
  - [Analytics](docs/features/analytics.md)
- [API Reference](docs/api/endpoints.md) - Complete API documentation
- [Database Schema](docs/database/schema.md) - Prisma models and relationships
- [UI Components](docs/components/ui-components.md) - Component library guide
- [Deployment](docs/deployment.md) - Production deployment guide

## Project Structure

```
├── prisma/
│   └── schema.prisma        # Database schema (23 models)
├── src/
│   ├── app/
│   │   ├── api/             # API routes (38 endpoints)
│   │   ├── (dashboard)/     # Dashboard pages
│   │   └── (auth)/          # Auth pages
│   ├── components/
│   │   ├── ui/              # shadcn/ui components
│   │   ├── dashboard/       # Dashboard components
│   │   └── auth/            # Auth forms
│   ├── lib/
│   │   ├── validations/     # Zod schemas
│   │   ├── email/           # Email service
│   │   └── hooks/           # Custom hooks
│   └── auth.ts              # NextAuth configuration
├── public/
│   └── uploads/             # Media uploads
└── docs/                    # Documentation
```

## Contributing

We welcome contributions! Please see our [Contributing Guide](CONTRIBUTING.md) for details.

1. Fork the repository
2. Create your feature branch (`git checkout -b feature/amazing-feature`)
3. Commit your changes (`git commit -m 'Add amazing feature'`)
4. Push to the branch (`git push origin feature/amazing-feature`)
5. Open a Pull Request

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

## Support

- [GitHub Issues](https://github.com/taqnihub/dashboard-starter/issues) - Bug reports and feature requests
- [Discussions](https://github.com/taqnihub/dashboard-starter/discussions) - Questions and community support

---

Built with care by [Taqnihub](https://taqnihub.com)
反馈内容错误

看看同类模板

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