일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- Linux pwd
- AWS EC2 서버 만들기
- EC2 Apache2
- Linux oh my zsh
- 서버의 서비스 방식
- EC2 zsh
- 자바스크립트 런타임
- linux background
- Logback
- Linux 파일 관리 명령어
- javascript 정렬
- 자바스크립트 이벤트 루프
- JavaScript EventLoop
- Linux mkdir
- Linux 디렉터리 구조
- JavaScript 실행 디버깅
- Linux ls
- Linux apt-get
- Linux 디렉터리 역할
- EC2 oh my zsh
- linux foreground
- Linux cd
- Linux 디렉터리 명령어
- Linux cat
- Linux apt
- EC2 HTTP 호스팅
- Linux rmdir
- javascript scope
- HTTP Web Server
- Navigation Pattern
Archives
- Today
- Total
목록Node.js/Express (1)
HyunJun 기술 블로그
728x90
반응형
Node.js HTTP Module, Express
1. 서버 모듈 HTTP Module: 웹 서버를 만들기 위한, Node.js의 서버 모듈 Express: 웹 서버를 만들기 위한 Node.js의 웹 프레임워크, 서버 모듈, HTTP Module보다 더 간편, 많은 기능 2. 코드 비교 1) HTTP Module // http module. const http = require("http"); const httpPort = 3000; // HTTP Module Server const httpModuleServer = http.createServer((req, res) => { if (req.method === "GET" && req.url === "/http") { res.writeHead(200, { "Content-Type": "text/html",..
Node.js/Express
2023. 6. 21. 17:28
728x90
반응형