Kamsi's Blog

Kamsi's Blog

  • 분류 전체보기 (156)
    • Database (25)
      • 공통 (2)
      • Oracle (14)
      • MySQL (2)
      • Tibero (1)
      • MSSql (0)
      • PostgreSQL (5)
    • JAVA (64)
      • Spring(eGovFrame) (25)
      • Spring Security (6)
      • Spring Boot (12)
      • iBatis(MyBatis) (0)
      • JSTL (1)
      • Tiles (1)
      • Webservice(REST) (8)
      • Common (5)
    • Eclipse (5)
    • Python (4)
    • JavaScript (23)
      • NodeJS (13)
      • React (1)
    • PHP (1)
    • HTML5 (4)
    • CSS (7)
    • Kubernetes (3)
    • 정규식 (1)
    • 소스형상화 (6)
      • MAVEN (2)
      • ANT (1)
      • Gradle (1)
    • 기타 (4)
      • VirtualBox (1)
      • Excel (1)
  • HOME
  • TAG
  • MEDIA LOG
  • LOCATION LOG
  • GUEST BOOK
  • WRITE
RSS 피드
로그인
로그아웃 글쓰기 관리

Kamsi's Blog

컨텐츠 검색

태그

oracle JWT 노드js java config restful spring REACT security chat SPRING4 schedule 웹소켓 채팅 nodejs SpringBoot Spring Boot webflux websocket webservice Python

최근글

댓글

공지사항

아카이브

http(2)

  • [NodeJS] 서버 만들기(HTTP Server) - 2

    이번에는 작성한 HTML을 서버를 통해 화면에 출력해 주도록 합니다. index.html 생성합니다. Hello world!!! 그리고 이전 server.js를 수정합니다. const http = require("http");const fs = require("fs");const url = require("url"); http.createServer( (request, response) => { const path = url.parse(request.url, true).pathname;if( path === "/" ) {response.writeHead(200, { "Content-type" : "text/html"} );fs.readFile(__dirname + "/views/index.html", "..

    2017.11.28
  • [NodeJS] 서버 만들기(HTTP Server) - 1

    HTTP Server를 만들기 위하여 먼서 http 모듈을 로딩한다. const http = require("http"); Server 기본 형태는 다음과 같다. http.createServer( (request, response) => {console.log( "Server Request....!!" );}).listen(8080, () => {console.log( "Server Start. localhost:8080" );}); 작성후 nodejs를 실행하고 브라우저에서 http://localhost:8080을 호출하면 console 창에 Server Start. localhost:8080Server Request....!!이와 같이 출력되는 것을 확인 할 수 있을 것이다. 하지만 브라우저에는 아무..

    2017.11.27
이전
1
다음
티스토리
© 2018 TISTORY. All rights reserved.

티스토리툴바

단축키

내 블로그

내 블로그 - 관리자 홈 전환
Q
Q
새 글 쓰기
W
W

블로그 게시글

글 수정 (권한 있는 경우)
E
E
댓글 영역으로 이동
C
C

모든 영역

이 페이지의 URL 복사
S
S
맨 위로 이동
T
T
티스토리 홈 이동
H
H
단축키 안내
Shift + /
⇧ + /

* 단축키는 한글/영문 대소문자로 이용 가능하며, 티스토리 기본 도메인에서만 동작합니다.