https://github.com/wangxiaoyugg/nestjs-blog-server-api
nestjs blog server-api
https://github.com/wangxiaoyugg/nestjs-blog-server-api
Last synced: 3 months ago
JSON representation
nestjs blog server-api
- Host: GitHub
- URL: https://github.com/wangxiaoyugg/nestjs-blog-server-api
- Owner: WangXiaoyugg
- Created: 2024-07-12T06:18:18.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-07-15T07:21:31.000Z (11 months ago)
- Last Synced: 2025-01-27T16:48:16.174Z (4 months ago)
- Language: TypeScript
- Size: 94.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Blog Server API
使用nestjs搭建的博客服务器API, 主要分为用户模块和博客模块使用技术栈
- nestjs
- typeorm
- mysql
- jwt## 用户模块
- 用户登陆 ,` POST /api/user/login`
- 用户个人信息, `GET /api/user/profile`## 博客模块
- 博客列表, `GET /api/blog`
- 博客详情, `GET /api/blog/:id`
- 创建博客, `POST /api/blog`
- 更新博客, `PATCH /api/blog/:id`
- 删除博客, `DELETE /api/blog/:id`
## 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
```