# nextdoc4j-ui **Repository Path**: nextdoc4j/nextdoc4j-ui ## Basic Information - **Project Name**: nextdoc4j-ui - **Description**: nextdoc4j-ui 是 NextDoc4j 的前端子项目,提供基于 OpenAPI 3 规范的现代化 API 文档界面。它旨在替代传统 Swagger UI,采用更清晰的交互设计与更强的自定义能力,支持多种主题、分组视图、接口调试等高级功能,带来更优的开发者体验。 - **Primary Language**: TypeScript - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: https://nextdoc4j.top/ - **GVP Project**: No ## Statistics - **Stars**: 6 - **Forks**: 2 - **Created**: 2025-05-12 - **Last Updated**: 2025-11-06 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README

Nextdoc4j Logo

Nextdoc4j UI

现代化的 API 文档界面解决方案
基于 Vue 3 + TypeScript + Vite 构建,深度整合 SpringDoc,替代 Swagger UI,
提供更美观、更强大的开发体验,让 API 文档焕然一新。

🌐 在线演示 | 📘 官方文档 | 🧩 更新日志 | ❓ 常见问题

## 📦 代码仓库 | 平台 | 仓库地址 | | --- | --- | | GitCode | [https://gitcode.com/NextDoc4j/nextdoc4j-ui](https://gitcode.com/NextDoc4j/nextdoc4j-ui) | | Gitee | [https://gitee.com/nextdoc4j/nextdoc4j-ui](https://gitee.com/nextdoc4j/nextdoc4j-ui) | | GitHub | [https://github.com/NextDoc4j/nextdoc4j-ui](https://github.com/NextDoc4j/nextdoc4j-ui) | ## 📖 项目简介 Nextdoc4j UI 是一个现代化的 API 文档前端界面,专为 Nextdoc4j 后端项目打造。它基于优秀的 [Vue Vben Admin](https://github.com/vbenjs/vue-vben-admin) 框架进行二次开发,提供了比传统 Swagger UI 更加美观、易用的 API 文档浏览体验。 ### ✨ 核心特性 - 🎨 **现代化设计** - 基于最新设计规范,提供优雅的用户体验 - ⚡ **性能优异** - 基于 Vue 3 + Vite,构建快速,运行流畅 - 🔧 **深度整合** - 与 SpringDoc 深度集成,完美替代 Swagger UI - 🎯 **TypeScript** - 全面的类型安全保障 ## 🖼️ 界面预览 ### 主界面 ![主界面截图](.images/main-interface.png) ### API 文档浏览 ![API文档浏览](.images/api-docs.png) ### 接口测试 ![接口测试](.images/api-testing.png) ## 🚀 快速开始 ### 环境要求 - **Node.js**: >= 18.0.0 - **pnpm**: >= 9.12.0 (推荐) ### 安装依赖 ```bash # 克隆项目(选择任一平台) git clone https://gitcode.com/NextDoc4j/nextdoc4j-ui.git # 或 git clone https://gitee.com/nextdoc4j/nextdoc4j-ui.git # 或 git clone https://github.com/NextDoc4j/nextdoc4j-ui.git # 进入项目目录 cd nextdoc4j-ui # 安装依赖 pnpm install ``` ### 开发 ```bash # 启动开发服务器 pnpm dev # 访问 http://localhost:5777 ``` ### 构建 ```bash # 构建生产版本 pnpm build ``` 更多配置和使用方式请参考 [官方文档](https://nextdoc4j.top/)。 ## 📁 项目结构 ``` nextdoc4j-ui/ ├── apps/ │ └── web-ele/ # 主应用 ├── packages/ │ ├── @core/ # 核心功能包 │ ├── constants/ # 常量定义 │ ├── effects/ # 副作用处理 │ ├── icons/ # 图标组件库 │ ├── locales/ # 国际化资源 │ ├── preferences/ # 用户偏好设置 │ ├── stores/ # 状态管理 (Pinia) │ ├── styles/ # 全局样式 │ ├── types/ # TypeScript 类型定义 │ └── utils/ # 通用工具函数 ├── internal/ │ ├── lint-configs/ # ESLint/Prettier 配置 │ ├── node-utils/ # Node.js 工具函数 │ ├── tailwind-config/ # TailwindCSS 配置 │ ├── tsconfig/ # TypeScript 配置 │ └── vite-config/ # Vite 构建配置 └── ... ``` ## 🔧 技术栈 - **框架**: Vue 3 + TypeScript - **构建工具**: Vite - **包管理**: pnpm + Monorepo (Turbo) - **UI 组件**: 基于 Vben Admin - **状态管理**: Pinia - **路由**: Vue Router 4 - **样式**: TailwindCSS - **代码规范**: ESLint + Prettier + Stylelint - **测试**: Vitest ## 🤝 与后端集成 本项目专为 Nextdoc4j 后端设计,提供无缝集成体验: 1. **自动 API 发现**: 自动读取 SpringDoc 生成的 OpenAPI 规范 2. **实时文档同步**: 后端 API 变更时前端文档自动更新 3. **在线接口测试**: 内置接口测试工具,支持各种认证方式 4. **类型安全**: 基于 OpenAPI 规范自动生成 TypeScript 类型 ### 后端项目地址 | 平台 | 仓库地址 | | --- | --- | | GitCode | [https://gitcode.com/NextDoc4j/nextdoc4j](https://gitcode.com/NextDoc4j/nextdoc4j) | | Gitee | [https://gitee.com/nextdoc4j/nextdoc4j](https://gitee.com/nextdoc4j/nextdoc4j) | | GitHub | [https://github.com/NextDoc4j/nextdoc4j](https://github.com/NextDoc4j/nextdoc4j) | ## 🤝 参与贡献 我们欢迎所有形式的贡献!包括但不限于: - 🐛 提交 Bug 反馈 - 💡 提供功能建议 - 📝 改进文档 - 💻 贡献代码 详细的贡献指南请访问:[贡献指南](https://nextdoc4j.top/more/contribute.html) ## 📚 相关链接 - **官方文档**: [https://nextdoc4j.top](https://nextdoc4j.top) - **贡献指南**: [https://nextdoc4j.top/more/contribute.html](https://nextdoc4j.top/more/contribute.html) - **更新日志**: [https://nextdoc4j.top/more/changelog.html](https://nextdoc4j.top/more/changelog.html) - **常见问题**: [https://nextdoc4j.top/more/faq.html](https://nextdoc4j.top/more/faq.html) - **团队介绍**: [https://nextdoc4j.top/more/team/team.html](https://nextdoc4j.top/more/team/team.html) ## 📄 许可证 本项目基于以下许可证发布: - 主项目: [Apache-2.0 License](LICENSE) - Vben Admin 部分: [MIT License](licenses/LICENSE-MIT-Vben) ## 🙏 致谢 - [Vue Vben Admin](https://github.com/vbenjs/vue-vben-admin) - 优秀的 Vue 3 管理后台框架 - [Vue.js](https://vuejs.org/) - 渐进式 JavaScript 框架 - [Vite](https://vitejs.dev/) - 下一代前端构建工具 ---
**NextDoc4j** - 让 API 文档焕然一新! 如果这个项目对你有帮助,请给它一个 ⭐️