Draft:NestJS
This article, Draft:NestJS, has recently been created via the Articles for creation process. Please check to see if the reviewer has accidentally left this template after accepting the draft and take appropriate action as necessary.
Reviewer tools: Preload talk Inform author |
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 |
Platform | Node.js, Web platform |
Size | 17.0 MB |
Type | Web application framework |
License | MIT License |
Website | nestjs |
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). <syntaxhighlight lang="typescript"> 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'; }
} </syntaxhighlight>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.