当前仓库属于关闭状态,部分功能使用受限,详情请查阅 仓库状态说明
2 Star 5 Fork 1

SouWinds / NestJs-Curd
关闭

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

NestJs-Curd

本项目是学习NestJs的好demo

NestJs-Curd是一个基于课程的demo,提供NestJs方式快速实现CURD操作接口。轻松连接数据库建立接口测试文档,从而使得服务端开发更加高效!

课程目录

  • P1 NestJs开发博客API-1-基础项目搭建
  • P2 NestJs开发博客API-2-创建帖子模块和控制器
  • P3 NestJs开发博客API-3-使用Swagger自动生成接口文档
  • P4 NestJs开发博客API-4-Post请求和数据传输对象DTO
  • P5 NestJs开发博客API-5-Put、Delete请求和URL路径参数
  • P6 NestJs开发博客API-6-Typegoose模型定义
  • P7 NestJs开发博客API-7-7分钟完成帖子CRUD操作API
  • P8 NestJs开发博客API-8-使用class-validator验证请求数据
  • P9 NestJs开发博客API-9-使用nestjs-typegoose依赖注入Post模型
  • P10 NestJs开发博客API-10-使用nestjs-mongoose-crud快速实现CRUD

课程信息

  1. 课程作者 :全栈之巅
  2. 平 台 :哔哩哔哩
  3. 番 号 :av66475543

依赖说明

{
    "@hasezoey/typegoose": "^6.0.0-32",
    "@nestjs/common": "^6.10.14",
    "@nestjs/core": "^6.10.14",
    "@nestjs/platform-express": "^6.10.14",
    "@nestjs/swagger": "^4.2.9",
    "@types/mongoose": "^5.7.1",
    "class-transformer": "^0.2.3",
    "class-validator": "^0.11.0",
    "mongoose": "^5.9.1",
    "nestjs-typegoose": "^7.1.0",
    "reflect-metadata": "^0.1.13",
    "rimraf": "^3.0.0",
    "rxjs": "^6.5.4",
    "swagger-ui-express": "^4.1.3"
}

安装依赖

$ npm install

或者

$ yarn

运行项目

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

测试

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

License

NestJs-Curd is MIT licensed.

MIT License Copyright (c) 2020 平昔 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

NestJs-Curd是一个基于课程的demo,提供NestJs方式快速实现CURD操作接口。轻松连接数据库建立接口测试文档,从而使得服务端开发更加高效! 展开 收起
NodeJS
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
NodeJS
1
https://gitee.com/SouWind/NestJs-Curd.git
git@gitee.com:SouWind/NestJs-Curd.git
SouWind
NestJs-Curd
NestJs-Curd
master

搜索帮助