# TodoListBackend-Nest **Repository Path**: Jon-a-than/TodoListBackend-Nest ## Basic Information - **Project Name**: TodoListBackend-Nest - **Description**: nestjs搭建的todolist后台系统 - **Primary Language**: TypeScript - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-03-22 - **Last Updated**: 2023-12-09 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # TodoListBackend-NestJS

Nest Logo

[circleci-image]: https://img.shields.io/circleci/build/github/nestjs/nest/master?token=abc123def456 ## 开发环境 `pnpm:8.2.0` + `MongoDB:6.0.5` + `Node.js:18.14.0` + `redis:7.0.10` ## 快速开始 ### 设置 JWT KEY 与短信服务密钥 **注意:** 不要将密钥提交到版本控制中,因为它是敏感信息。 使用阿里云短信服务,需要在 `.env` 文件中设置 `ACCESS_KEY_ID` 和 `ACCESS_KEY_SECRET` 两个环境变量。 `.secret.env` 文件中的密钥将用于生成 JWT 令牌。 ```env JWT_SECRET="555555" ACCESS_KEY_ID="含短信服务权限的accessKeyId" ACCESS_KEY_SECRET="含短信服务权限的accessKeySecret" ``` ### 启动项目 **本地 API 地址: `localhost:4936`** #### 👍 使用 Docker ```bash $ docker compose up -d ``` #### 亦可本地启动 1. 启动 MongoDB `port:27017` 2. 启动 Redis `port:6379` 3. 安装依赖并启动项目 ```bash $ pnpm i $ pnpm run start:dev ``` ## Test ```bash # unit tests $ pnpm run test # e2e tests $ pnpm run test:e2e # test coverage $ pnpm run test:cov ``` ## 接口开发文档 [APIFOX](https://www.apifox.cn/web/invite?token=tcoiS-8rkbLuoBzMhq81x)