内置邮箱密码认证:注册、登录、登出流程可直接使用
nuxt-prisma-auth — Nuxt 启动器模板
作者 idesignzone
基于 Nuxt 3 的全栈启动模板,内置 Prisma ORM、邮箱密码认证、邮箱验证、密码重置、i18n 多语言与 Nuxt UI 组件。
看看你的网站会是什么样
浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。
目前有 1 张原始预览,可打开完整图片查看设计细节。
截图用于了解视觉与布局,交互效果请以实际项目为准。
值得关注的模板亮点
从已有项目资料中,快速了解它的特点。
基于 token 的邮箱验证,未验证账号在登录时会被拒绝
完整的忘记密码与重置密码流程,通过邮件发送安全 token
使用 Prisma ORM 管理数据库,并提供迁移与 Prisma Studio 脚本
集成 nuxt-i18n 多语言支持,默认提供英语和俄语翻译文件
界面基于 Nuxt UI 组件构建,附带首页与个人资料页截图
模板详细介绍
这是一个 Nuxt 3 全栈启动模板,面向需要本地邮箱密码认证的应用。它把注册、登录、登出、基于 token 的邮箱验证、忘记密码与重置密码流程都预先接好,并用 nuxt-nodemailer 发送验证和重置邮件。数据层使用 Prisma ORM,需自行准备 PostgreSQL 等数据库并执行迁移。界面基于 Nuxt UI 组件,多语言由 nuxt-i18n 提供,默认配置英语和俄语,翻译文件放在 locales/ 目录。项目结构包含 middleware、components、layouts、pages、server、prisma 等目录,并附带开发、构建、预览和 Prisma Studio 脚本。README 的 TODO 中列出社交登录、管理后台和角色权限系统尚未实现,因此这些能力不在当前版本范围内。
适合你的项目吗?
适用场景
- 需要快速搭建带邮箱注册与登录的 Nuxt 3 全栈应用
- 希望以 Prisma 作为数据层并自行管理 PostgreSQL 等数据库
- 需要邮箱验证和密码重置等账号安全流程的项目
- 面向多语言用户、需要 i18n 支持的站点
- 使用 Nuxt UI 组件库构建管理或个人资料类页面
适合人群
- 熟悉 Nuxt 3 与 Vue 的前端或全栈开发者
- 需要本地邮箱密码认证而非第三方登录的启动项目
- 愿意自行配置数据库、SMTP 邮件服务与环境变量的团队
- 以英语或俄语为初始语言、后续可扩展其他语言的应用
上手与定制指南
结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。
- 1
克隆仓库后执行 npm install 安装依赖
- 2
如未初始化 Prisma,运行 npx prisma init 生成 schema 与 .env
- 3
在 .env 中配置 NUXT_BASE_URL、DATABASE_URL 以及 SMTP 相关变量
- 4
执行 npx prisma migrate dev --name init 完成数据库迁移
- 5
运行 npm run dev 启动开发服务器,访问 http://localhost:3000
授权与来源资料
使用条件与限制
免费使用 · 保留许可声明本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。
使用时需要遵守
- 允许免费使用、修改、商用和分发该版本代码。
- 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
- 代码按现状提供;担保与责任限制以原许可证及适用法律为准。
额外费用与待核对事项
- 模板依赖外部 SMTP 邮件服务发送验证与重置密码邮件,需自行提供邮箱账号与授权码(如 Gmail 应用专用密码),否则注册验证与密码重置流程无法工作。
- 需自行准备并运行 PostgreSQL 等数据库,配置连接字符串并执行 Prisma 迁移,模板本身不包含托管数据库。
- 社交登录、管理后台、角色权限系统在 README 的 TODO 中列为未实现,当前版本不提供这些能力。
- 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
- 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据
Permission is hereby granted, free of charge
许可证原文
EMAIL_SMTP_HOST="smtp.gmail.com"
README 原文
DATABASE_URL="postgresql://user:password@localhost:5432/dbname?schema=public"
README 原文
https://github.com/idesignzone/nuxt-prisma-auth/blob/main/LICENSEhttps://github.com/idesignzone/nuxt-prisma-auth/blob/main/README.md* [ ] Add social login support
README 原文
DeepSeek 根据仓库许可证和 README 整理 ·2026-10-02。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。
项目核对记录与介绍依据
模板资料
- 来源平台
- GitHub
- 资料与维护参考分
- 资料一般 · 69 / 100
- 技术栈
- Nuxt · Vue
- 网站类型
- 启动器
这个分数如何计算
本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。
这个项目需要核对什么
- 记录的仓库更新时间
- 2025-05-25
- 截图检查日期
- 2026-10-02
目前没有记录演示链接。请依据仓库说明在本地评估;仅凭截图无法确认交互行为。
目录记录的主要技术栈是 Nuxt。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。
查看具体选型方法 →介绍的制作与核对状态
介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。
已完成服务器许可规则与 AI 来源核对;未经过人工编辑审核。
查看当时使用的来源资料
SHA-256: ac72fe4fe2308f1644cc3553e5b24d59cea3a41718b8ea2223e758ddd6a4cd59
2026-10-02T17:23:04.648Z
来源文件 / 仓库# Nuxt Prisma Full Stack Starter
A full-featured Nuxt 3 starter template for building full stack applications with authentication, email verification, i18n, and UI components out of the box.
## 🔧 Tech Stack
* **Nuxt 3** — Vue-based frontend framework
* **Prisma ORM** — Database toolkit
* **Nuxt UI** — Beautiful and customizable UI components
* **nuxt-auth-utils** — Local email/password authentication
* **nuxt-i18n** — Localization and multi-language support
* **nuxt-nodemailer** — Send verification and reset password emails
## ✨ Features
* 🔐 User authentication (register, login, logout)
* ✅ Email verification via token
* 🔄 Forgot and reset password flow
* 🌍 Multi-language support with `nuxt-i18n`
* 🎨 UI components built with `nuxt-ui`
* 🧠 ORM with Prisma
## 📦 Getting Started
### 1. Clone the repo
```bash
git clone https://github.com/idesignzone/nuxt-prisma-auth.git
cd nuxt-prisma-auth
```
### 2. Install dependencies
```bash
npm install
```
### 3 Initialize Prisma (if needed)
If Prisma is not yet initialized, run:
```bash
npx prisma init
```
This will create a prisma/schema.prisma file and set up a .env file if one doesn't exist.
### 4. Set up environment variables
Create a `.env` file and set up your variables:
```env
NUXT_BASE_URL="http://localhost:3000"
DATABASE_URL="postgresql://user:password@localhost:5432/dbname?schema=public"
EMAIL_SMTP_FROM="your-email"
EMAIL_SMTP_HOST="smtp.gmail.com"
EMAIL_SMTP_PORT=465
GMAIL_SMTP_USER="your-email"
GMAIL_SMTP_PASS="your-app-password"
```
### 5. Migrate the database
```bash
npx prisma migrate dev --name init
```
### 6. Run the development server
```bash
npm run dev
```
Go to `http://localhost:3000` to see the app.
## 🧪 Available Scripts
* `npm run dev` — Starts the development server
* `npm run build` — Builds the application
* `npm run preview` — Preview production build
* `npx prisma studio` — Opens Prisma Studio for DB browsing
## 🔐 Authentication Flow
* User registers with email and password
* Verification email is sent via `nuxt-nodemailer`
* On login, unverified accounts are rejected
* Forgot password email generates secure token
* Password can be reset via tokenized URL
## 🌍 i18n Support
Configure languages in `nuxt.config.ts`:
```ts
i18n: {
baseUrl: process.env.NUXT_BASE_URL || 'http://localhost:3000',
defaultLocale: "en",
locales: [
{ code: "en", language: 'en-US', name: "English", file: "en.json" },
{ code: "ru", language: 'ru-RU', name: "Russian", file: "ru.json" },
],
},
```
Translations are stored in `locales/` directory.
## 🖼️ Screenshots
### 🏠 Homepage

### 👤 Profile Page

## 🛠️ Folder Structure
```
.
├── middleware/
├── assets/
├── components/
├── i18n/
├── layouts/
├── pages/
├── prisma/
├── public/
├── server/
├── .env
├── app.config.ts
├── app.vue
├── nuxt.config.ts
├── LICENSE.md
├── package.json
├── README.md
└── tsconfig.json
```
## ✅ TODO
* [ ] Add social login support
* [ ] Add admin dashboard
* [ ] Add roles/permissions system
## 📄 License
MIT License © iDesignzone
看看同类模板
对比同技术栈与用途的模板,找到更适合的视觉与内容结构。

laravel-nuxt
A Laravel-Nuxt starter kit.
Nuxt · 启动器

canvas
Portfolio template made with Nuxt 3, Nuxt Content v3, NuxtUI v3 and TailwindCSS v4
Nuxt · 作品集

nuxt3-starter
💚 A Better Nuxt 3 Starter Template,generate by nuxi.
Nuxt · 启动器

starter
Nuxt Starter Template for Nuxt UI.
Nuxt · 启动器

bloggrify
Run a blog from Markdown files. Themes, SEO, analytics, newsletter and comments preconfigured. Like Docus, but…
Nuxt · 博客

vitify-nuxt
🔽🏔 Vuetify + Nuxt Starter Template
Nuxt · 后台
