# node api tools **Repository Path**: n0ts/node-api-tools ## Basic Information - **Project Name**: node api tools - **Description**: 基于 Node 的常用 API 开放 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 11 - **Forks**: 4 - **Created**: 2022-06-06 - **Last Updated**: 2024-08-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 简介 欢迎使用 N0ts 封装的一些常见 API 本项目基于 [NestJS](https://nestjs.com/) 开发,主要为个人日常使用,同时也是开源的 开源地址:https://gitee.com/n0ts/node-api-tools 任何问题欢迎提 Issues 和我讨论~ ## 使用说明 > 需自行掌握 Node 项目部署 需修改 `\node-api-tools\nest\src\config\config.ts` 的配置内容 如果只需要部署,修改 prod 的内容即可 其中只有 `port` 端口号为必填,其他都为可选; 如涉及到 Gitee 相关 API,请填写自己的 `password` 操作密码以及 `accessToken` 码云授权码; 如涉及到 Gitee Token 服务,请配置自己的 `database` mysql 数据库; ```javascript const prod = { // api 地址 api: "https://api.n0ts.top", // 端口号 port: 3002, // Gitee Access Token accessToken: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", // Gitee API 地址 giteeApi: "https://gitee.com/api/v5", // 操作 API Password password: "123456", // Mysql 数据库地址 database: { host: "xxx", user: "xxx", password: "xxx", database: "xxx" } }; ``` 启动命令: ```bash npm run start ``` ## 支持我 [点我点我☕️](https://support.n0ts.top/) ## QQ 群讨论 [坚果茶馆](https://jq.qq.com/?_wv=1027&k=Mh7ah6Dd)