JavaScript/NodeJS
[NodeJS] Eclipse 연동 - plugin 설치
최강깜시
2017. 11. 7. 10:15
1. Eclipse plugin 설치
현 시점에 Eclipse Neon 사용하고 있음.
- Eclipse Menu > Help > Eclipse Marketplace 실행
- nodeclipse 검색 및 Install
이미지는 이미 설치되어 있는 것을 캡쳐 한것이기 때문에 이렇게 나온것이고.. 모두 설치 하면 됨..
2. Test
- NodeJS project 생성
- Project Root에 Javascript 생성
var http = require("http");
http.createServer(function(request, response) {
response.writeHead(200, {"Content-Type" : "text/html"});
response.end("<h1>Hello NodeJs Start....");
}).listen(8080, function() {
console.log( "server is listening on 8080" );
});
- Node.js Applicatin 실행
- 결과 확인
Eclipse Console 창 확인
URL 접속 확인
이와 같이 출력이 되면 완료.