NestJS

NestJS

Basisdaten

Entwickler Kamil Myśliwiec
Erscheinungsjahr 2017
Aktuelle Version 10.3.8
Betriebssystem plattformübergreifend
Programmier­sprache TypeScript
Kategorie Webframework
Lizenz MIT-Lizenz
nestjs.com

NestJS ist ein Webframework für Node.js für den Bau von effizienten und skalierbaren serverseitigen Webanwendungen. Es basiert vollständig auf TypeScript und verwendet stark die Prinzipien von objektorientierter Programmierung (OOP), funktionaler Programmierung (FP) und reaktiver Programmierung (FRP).

Geschichte

NestJS wurde von Kamil Myśliwiec entwickelt und zuerst im Jahr 2017 veröffentlicht.[1] Es zielt darauf ab, Entwicklern eine Plattform zu bieten, die die Vorteile moderner Technologien nutzt und dabei die Prinzipien bester Softwareentwicklungspraktiken befolgt.

Merkmale

NestJS zeichnet sich durch seine modulare Architektur aus, die es ermöglicht, die Anwendungsstruktur systematisch zu organisieren. Features von NestJS umfassen:

Beispiel

Hier ist ein einfaches Hello World Beispiel in NestJS, das auf einen GET-Request den Text Hello World! zurück sendet:

import {Module, Controller, Get} from '@nestjs/common'
import {NestFactory} from '@nestjs/core'

@Controller()
class AppController {
  @Get()
  hello() {
    return 'Hello World!'
  }
}

@Module({
  controllers: [AppController]
})
class AppModule {}

async function bootstrap() {
  const app = await NestFactory.create(AppModule)
  await app.listen(3000)
}

bootstrap()

Einzelnachweise

  1. NestJS - A progressive Node.js framework. Abgerufen am 26. April 2024.
  2. Documentation | NestJS – A progressive Node.js framework. Abgerufen am 26. April 2024 (englisch).

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.