express1 [Node.js] 바닐라 Node.js, Express, NestJS 서버 및 코드 비교 Node.js는 JavaScript를 이용해 백엔드 서버를 구현할 수 있는 강력한 런타임 환경이다. 기본적으로 내장된 http 모듈만으로도 서버를 구축할 수 있지만, 현업에서는 Express나 NestJS 같은 프레임워크를 많이 사용한다. 이번 글에서는 바닐라(순수) Node.js, Express, NestJS를 비교하면서 각각의 특징과 장단점을 살펴보자. 바닐라 Node.jsNode.js는 http 모듈을 기본적으로 제공하며, 이를 이용해 간단한 서버를 구현할 수 있다. 다음은 기본적인 예제이다. const http = require("http");const PORT = 3000;const server = http.createServer((request, response) => { response.. 2024. 12. 11. 이전 1 다음 728x90