# nestjs-demo **Repository Path**: Alan_95/nestjs-demo ## Basic Information - **Project Name**: nestjs-demo - **Description**: nestjs基本应用增删查改分页 - **Primary Language**: NodeJS - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2022-07-09 - **Last Updated**: 2024-11-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README

Nest Logo

[circleci-image]: https://img.shields.io/circleci/build/github/nestjs/nest/master?token=abc123def456 [circleci-url]: https://circleci.com/gh/nestjs/nest

A progressive Node.js framework for building efficient and scalable server-side applications.

NPM Version Package License NPM Downloads CircleCI Coverage Discord Backers on Open Collective Sponsors on Open Collective Support us

## Description [Nest](https://github.com/nestjs/nest) framework TypeScript starter repository. ## Installation ```bash $ npm install ``` ## Running the app ```bash # development $ npm run start # watch mode $ npm run start:dev # production mode $ npm run start:prod ``` ## Test ```bash # unit tests $ npm run test # e2e tests $ npm run test:e2e # test coverage $ npm run test:cov ``` ## Support Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please [read more here](https://docs.nestjs.com/support). ## Stay in touch - Author - [Kamil My艣liwiec](https://kamilmysliwiec.com) - Website - [https://nestjs.com](https://nestjs.com/) - Twitter - [@nestframework](https://twitter.com/nestframework) ## License Nest is [MIT licensed](LICENSE). ##### user模块使用 ``` // get 保存数据 localhost:3000/api/user/save?name=小红&age=14 // get 获取数据 localhost:3000/api/user/get // put 更新 body:{id:1,name:小红11} localhost:3000/api/user/update // get 删除指定某条 localhost:3000/api/user/remove?id=3 ``` ##### posts模块使用 ``` // post 新增数据 body:{ "title": "小红111", "content": "挥洒嗲话谁丢的安德海带好伞", "author": "K", "type": "1",} localhost:3000/api/posts // get 获取数据 params:{pageNum:1,pageSize:10} 获取分页数据 localhost:3000/api/posts // get 获取单条数据 ocalhost:3000/api/posts/1 // put 更新数据 body:{'title': '小红'} ocalhost:3000/api/posts/1 // delete 删除数据 ocalhost:3000/api/posts/1 ```