NestJS
| Original author(s) | Kamil Myśliwiec[1] |
|---|---|
| Developer(s) | Open-source community[2] |
| Initial release | February 16, 2018[3] |
| Repository | github |
| Written in | JavaScript, TypeScript, and Rust |
| Engine | |
| Platform | Node.js, Web platform |
| Size | 17.0 MB |
| Type | Web application framework |
| License | MIT License |
| Website | nestjs |
Search NestJS on Amazon.
NestJS is a dynamic & backend web application Node.js framework [1]. It is mainly designed for building web applications and APIs.
History
NestJS is an MIT-licensed open source project.[5]
Features
- Robust,
- Powerful,
- Scalable server-side applications,
- Stop reinventing the wheel.
Popularity
NestJS is used by
- GitLab,
- Red Hat,
- BNW,
- IBM[6]
Example
Handlers often need access to the client request details. Nest provides access to the request object of the underlying platform (Express by default).
import { Controller, Get, Req } from '@nestjs/common';
import { Request } from 'express';
@Controller('cats')
export class CatsController {
@Get()
findAll(@Req() request: Request): string {
return 'This action returns all cats';
}
}
We can access the request object by instructing Nest to inject it by adding the @Req() decorator to the handler's signature.
References
- ↑ Asay, Matt (21 April 2020). "How Next.js aims to simplify front-end development". TechRepublic. Retrieved 2020-10-20.
- ↑ "nestjs". GitHub. Retrieved 2019-03-17.
- ↑ "Next.js First Release". GitHub. 2019-03-14. Retrieved 2019-03-17.
- ↑ "Next.js v10.3.6". GitHub. 2019-03-14. Retrieved 2024-03-17.
- ↑ "Support us". Retrieved 11 April 2024.
- ↑ "Who is using Nest?". Retrieved 11 March 2024.
This article "NestJS" is from Wikipedia. The list of its authors can be seen in its historical and/or the page Edithistory:NestJS. Articles copied from Draft Namespace on Wikipedia could be seen on the Draft Namespace of Wikipedia and not main one.
