- 博客(3)
- 收藏
- 关注
原创 nest中的中间件、守卫、管道、异常过滤器和拦截器
因项目中未使用到中间件和管道,在这里不做描述 数据链路流程图 异常过滤器 创建 http-exception.filter.ts 文件 在主文件中使用 app.useGlobalFilters(new HttpExceptionFilter()); 统一返回数据 创建 response.interceptor.ts 文件 在主文件中使用 app.useGlobalInterceptors(new ResponseInterceptor()); 验证守卫 创建 auth.guard.ts 文件 .
2021-08-30 22:22:39
446
原创 markdown编辑器和展示
前言:学习这个是为了编写博客系统做准备,完全去编写一个 markdown 编辑器,在目前的环境下不是特别必要,所以只是简单的使用 涉及文档 for-editor:一个 markdown 编辑器作为到时的编辑 react-markdown:用作展示 markdown 语法后的代码 需要下载的依赖 yarn add react-markdown remark-gfm for-editor react-syntax-highlighter 使用编辑器 import React from 'react';.
2021-07-25 20:23:12
141
原创 git 发布项目
git 发布项目 服务器搭建 git 本地搭建项目和上传 服务器搭建 git 创建 git 文件夹 folderName git init folderName 进入 folderName 文件夹 git config --bool core.bare true 此行命令是为了解决本地 push 时报错 本地搭建项目和上传 搭建本地项目文件夹,然后进入项目文件夹 初始化 git...
2020-01-15 13:23:03
124
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人