https://github.com/hacxy/nitro-example
Nitro APP example, Support OpenAPI for zod.
https://github.com/hacxy/nitro-example
Last synced: 8 days ago
JSON representation
Nitro APP example, Support OpenAPI for zod.
- Host: GitHub
- URL: https://github.com/hacxy/nitro-example
- Owner: hacxy
- Created: 2025-04-28T04:16:56.000Z (23 days ago)
- Default Branch: main
- Last Pushed: 2025-04-29T03:20:30.000Z (22 days ago)
- Last Synced: 2025-04-29T04:32:57.788Z (22 days ago)
- Language: JavaScript
- Homepage:
- Size: 7.4 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Nitro Example
这是一个使用 [Nitro](https://nitro.unjs.io/guide#quick-start) 开发的后端应用案例
- [JsonWebToken](https://github.com/auth0/node-jsonwebtoken) 登录身份校验
- [zod](https://github.com/colinhacks/zod) 运行时类型校验并自动生成OpenAPI
- 统一响应参数格式
- 统一业务异常响应格式
- 文件上传示例## 参考:
- https://github.com/Dg0230/nitro-openapi-example
- https://github.com/StefanTerdell/zod-to-json-schema