nestcn / docs.nestjs.cn Goto Github PK
View Code? Open in Web Editor NEWnestjs 中文文档
Home Page: https://docs.nestjs.cn
nestjs 中文文档
Home Page: https://docs.nestjs.cn
异常过滤器那一章,HttpException小节开头 包 HttpException
内 有一个内置的类 @nestjs/common
,是不是写错了, 应该是包@nestjs/common
内 有一个内置的类 HttpException
吧
介绍(7/introduction)
概述
基本原理(7/fundamentals)
技术(7/techniques)
GraphQL(7/graphql)
WEBSOCKETS(7/websockets)
微服务(7/microservices)
秘籍 (7/recipes)
独立应用(7/standalone-applications)
CLI (7/cli)
FAQ (7/faq)
迁移指南(7/migrationguide)
谁在使用 Nest (7/discover)
回复:
比如
我要认领翻译「基础-依赖注入」
同样的docker环境,我自己写中间件,是可以获取到真实的访问ip,但是用@ip 只能获取到Nginx容器的内网ip
https://github.com/nestcn/docs/blob/master/index.html
41行 // End Single Page Apps for GitHub Pages -->c <<-----
回复格式:
我要认领翻译「基础-依赖注入」
There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.
Error type: undefined. Note: this is a nested preset so please contact the preset author if you are unable to fix it yourself.
根据这段时间的阅读,有一些可以提升阅读体验的建议。
建议有些特有名词直接使用英文单词,不进行翻译。
如 controller
不要翻译成控制器。modules
不要翻译成模块,provider
不要翻译成提供者。
比如 providers
provider
provide
其实是有区别的;而modules
模块的翻译,太常用了,容易产生歧义。
右侧加入子导航栏,与官网保持一致。
好多地方都读不通顺
加入申请格式:
我是
项目地址或证明截图:
回复该 issues 后,请加微信 :ivicerz
介绍(6/introduction)
概述
基本原理(6/fundamentals)
技术(6/techniques)
GraphQL(6/graphql)
WEBSOCKETS(6/websockets)
微服务(6/microservices)
应用上下文(6/applicationcontext)
秘籍 (6/recipes)
CLI (6/cli)【已认领】
FAQ (6/faq)
迁移指南(6/migrationguide)
谁在使用 Nest (6/discover)
回复:
比如
我要认领翻译「基础-依赖注入」
能否更新下呢,加好友的话,社恐人泪目😭
Originally posted by wenjian337 March 31, 2023
环境:node:v18.14.2
npm:9.5.0
nestjs:9.2.0
"cache-manager": "^5.2.0",
"cache-manager-redis-store": "^2.0.0",
在app.module.ts中初始化缓存
import * as redisStore from 'cache-manager-redis-store';
import type { RedisClientOptions } from 'redis';
//缓存 CacheModule.register<RedisClientOptions>({ store: redisStore, host: process.env.REDIS_HOST || 'localhost', port: process.env.REDIS_PORT || 6379, auth_pass: process.env.REDIS_PWD || '', db: 14, isGlobal: true, ttl: 60, }),
这里还不能使用cache-manager-redis-store@3,会报错。
在service中注入@Inject(CACHE_MANAGER) private cacheManager: Cache
然后可以缓存成功
但是在Resolver中注入@Inject(CACHE_MANAGER) public cacheManager: Cache,
缓存使用的确实内存缓存。
有没有大佬遇到过这样的情况
hi
how to create a build production
how to deploy nestjs in server (cloud)
add a support for build production for nestjs application
nestjs如何获取post提交的content-type为text/plain的数据?
3- [x] 介绍(6/introduction)
概述
基本原理(6/fundamentals)
技术(6/techniques)
GraphQL(6/graphql)
WEBSOCKETS(6/websockets)
微服务(6/microservices)
应用上下文(6/applicationconte t)
秘籍 (6/recipes)
CLI (6/cli)【已认领】
FAQ (6/faq)
迁移指南(6/migrationguide)
谁在使用 Nest (6/discover)
回复:
比如
我要认领翻译「基础-依赖注入」
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
This repository currently has no open or pending branches.
package.json
docsify-cli 4.4.4
第一步
控制器
提供者
模块
中间件
异常过滤器
管道
守卫
拦截器
技术
WEBSOCKETS
GraphQL
执行上下文
CLI
FAQ
自定义装饰器
基础
微服务
秘籍
注意: 由于官方文档做了部分更新,一校主要目的是校对官方文档变化的部分。
请回复相应模块名称认领;
能中文文档官网上直接给个pdf链接吗?gitbook就是转换不成功
gitbook FileNotFoundError: No "README" file (or is ignored)
In the pipes doc , I get confused about the object named createCatSchema
, I get it's consult after I consulted Joi docs. So can we get some supplements?
线上地址: https://genal.fun/
github地址: https://github.com/genaller/genal-chat
本地看太老火了~
旧版的 Nest 文档还需要维护或者保留吗?官方文档站并没有对旧文档版本做区分和保留,本仓库作为被官方认证的中文翻译文档应该向其看齐。再者,在维护文档过程中发现一个痛点是对于文档位置的链接,比如目前版本 7 中的不少对于知识板块的链接还是链接到版本 6 下的内容,而同时版本 7 下明明有相同内容,这种情况可能是在推出新版本时维护人员直接将旧版对应部分复制到新版,并对一些文字内容做修改,却忽视了同时应修改链接所导致的(or,当时还没有新版的对应部分)。
所以我认为对于旧版文档不应再保留了,或者至少旧版和新版不应共存在一个分支里。
此为一个讨论,希望各抒己见。如果赞同,我在下一个 pr 里将只保留最新版的文档
前几天看文档,发现有些地方少了一块,一看官方文档,才发现这里其实是有新增的,所有想帮帮忙(再不济也把英文补全让后来的看全信息)
另外,angular.cn的翻译项目挺好,可以点击一行显示英文,不借鉴一下吗
https://github.com/angular/angular-cn
在 2019 ngChina 开发者大会中,我们为一些贵宾预留了免费的赠票(包含两天的全部讲座)。
大会详情参见: 官网
为什么中文文档的网站形式和官网不太一样,印象里大多数中文文档和原文档的样式都大体一致。这里我有点不解。我明白文档最终的是内容,只是好奇。
#303 也有提到,管道章节的翻译与现有翻译存在出入。个人希望凭借自己微薄的力量为中文文档做一点贡献。由于水平有限,译完出现纰漏在所难免。
https://t.me/+1dU7qWFGgW43Nzg1
谁创建的频道啊,我点进去还以为是群
像比如 angular这样的 https://angular.cn/api,
要不然像 import { Reflector } from '@nestjs/core';
搜索 Reflector只能找到教程,找不到完整的api
介绍(8/introduction)
概述
基本原理(8/fundamentals)
技术(8/techniques)
GraphQL(8/graphql)
WEBSOCKETS(8/websockets)
微服务(8/microservices) 【待提交】
秘籍 (8/recipes)
独立应用(8/standalone-applications)
CLI (8/cli)
FAQ (8/faq)
迁移指南(8/migrationguide)
谁在使用 Nest (8/discover)
回复:
比如
我要认领翻译「基础-依赖注入」
介绍(10/introduction)
概述
基本原理(10/fundamentals)
技术(10/techniques)
GraphQL(10/graphql)
WEBSOCKETS(10/websockets)
微服务(10/microservices) 【待提交】
秘籍 (10/recipes)
独立应用(10/standalone-applications)
CLI (10/cli)
FAQ (10/faq)
迁移指南(10/migrationguide)
谁在使用 Nest (10/discover)
比如:
我要认领翻译「基础-依赖注入」
满足以下条件之一即可:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.