0 Star 0 Fork 0

dxpchina / nestjs-demo

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

nestjs-demo

Description

初步demo

download code

$ git clone https://github.com/DongCarzy/nestjs-demo.git

or

https://github.com/DongCarzy/nestjs-demo/archive/master.zip

Installation

$ npm install

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
npm run start:prod

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

测试API

可能无效

https://documenter.getpostman.com/view/1366049/RWMJr7Dm#intro

四组API

  • 查询所有
curl --request GET --url http://localhost:3000/user
  • 新增
curl --request POST \
  --url http://localhost:3000/user \
  --header 'Content-Type: application/json' \
  --data '{
	"id": 1,
	"no": "1",
	"name": "111"
}'
  • 修改
curl --request PATCH \
  --url http://localhost:3000/user/1 \
  --header 'Content-Type: application/json' \
  --data '{
	"no": "11_no",
	"name": "11_name"
}'
  • 查询单个
curl --request GET \
  --url http://localhost:3000/user/1
  • 删除
curl --request DELETE \
  --url http://localhost:3000/user/1

空文件

简介

nestjs 学习 demo 展开 收起
TypeScript
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
TypeScript
1
https://gitee.com/dxpchina/nestjs-demo.git
git@gitee.com:dxpchina/nestjs-demo.git
dxpchina
nestjs-demo
nestjs-demo
master

搜索帮助