# eggjs-ts-template **Repository Path**: zkboys/eggjs-ts-template ## Basic Information - **Project Name**: eggjs-ts-template - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2021-12-18 - **Last Updated**: 2024-05-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # NodeJS 后端模板 基于 [eggjs-typescript](https://eggjs.org/zh-cn/tutorials/typescript.html) ## 快速开始 ### 环境 - Node.js 8.x+ - Typescript 2.8+ ### 开发 ```bash # 安装依赖 $ yarn # 启动 $ yarn start # 浏览器访问 $ open http://localhost:7001/ ``` ### 部署 ```bash # 安装依赖 $ yarn # 编译 + 启动 $ yarn start:prod # 停止服务 $ yarn stop # 重启 $ yarn restart ``` ## 测试环境部署 - 执行命令:yarn rancher - jenkins地址: http://172.16.172.202:8080/jenkins/job/eggjs-ts-template - web访问地址: http://22.50.7.25:59041 ### yarn 脚本 - 使用 `yarn lint` 检查代码规范 - 使用 `yarn test` 运行单元测试 ## TODO - [x] 校验使用antd方式 https://github.com/yiminghe/async-validator - [x] swagger文档