Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- 이렇게살아야되나자괴감이
- 브로틀리
- 알고리즘
- 리얼월드HTTP
- jsr380
- 지수반등
- etag
- 알게뭐냐
- 워드프레스
- 지뢰찾기
- i18n
- 클래스레벨밸리데이션
- 개미수열
- Spring
- jsr303
- brotli
- cross parameter
- HTTP
- kotliln
- 랜선아미안해
- cache-control
- 스프링
- LastModified
- Kotlin
- 코드스피츠
Archives
- Today
- Total
취미개발 블로그와 마음수양
node.js 서버 생성 본문
//add module var http = require('http'); var express = require('express'); //create Web Server var app = express(); app.use(function (request, response, next) { console.log('first'); next(); }); app.use(function (request, response, next) { console.log('second'); next(); }); app.use(function (request, response) { response.send('Hello Middelware
'); }) //Execute Web Server http.createServer(app).listen(52273, function () { console.log('Server Running at http://127.0.0.1:52273'); })
'Language > Node.js' 카테고리의 다른 글
특정인메세지 보내기 node.js (0) | 2014.06.04 |
---|---|
모니터 껐다 켰다 하기~ (0) | 2014.06.04 |
애이잭스 요청 다른 곳에서도 허용하게 만들기 (0) | 2014.06.03 |
node.js 초기설정 (2014-05-30 일 버젼) (0) | 2014.05.30 |
node.js post undefined 현상시. (0) | 2014.05.29 |