목록WEB/Node.js (4)
hello world
-EXPRESS 란 ? Node.js를 위한 빠르며 간편한 프레임워크 (개발을 빠르고 손쉽게 !) -EXPRESS 설치 방법 expressjs.com/ko/starter/installing.html Express 설치 설치 Node.js가 이미 설치되었다고 가정한 상태에서, 애플리케이션을 보관할 디렉토리를 작성하고 그 디렉토리를 작업 디렉토리로 설정하십시오. $ mkdir myapp $ cd myapp npm init 명령을 이용하여 애플� expressjs.com 나는 git bash를 통해 설치 했다 . 1.폴더 생성 2.npm init 3. npm install --save express -Express 기본 예제 var express = require('express'); var app = exp..
Git Bash는 아래 링크에서 다운! https://git-scm.com/download Git - Downloads Downloads Mac OS X Windows Linux/Unix Older releases are available and the Git source repository is on GitHub. GUI Clients Git comes with built-in GUI tools (git-gui, gitk), but there are several third-party tools for users looking for a platform-specific git-scm.com nodeJs 폴더에서 우클릭 Git bash Here 클릭 hello.js 를 git bash에서 실행해주기 위해..
1.node.js 프로젝트 생성 1.NODETEST 프로젝트명을 가진 프로젝트 생성 3.index.js 파일 생성 4.index.js 에 아래 코드 작성 var http = require('http'); var server = http.createServer(function (request, response) { response.writeHead(200, {"Content-Type": "text/plain"}); response.end("Hello World~~!\n"); }); server.listen(8000); console.log("Server running"); 4.CMD 창에서 프로젝트가 저장된 경로를 찾는다. cd 경로 node js파일 찾은 뒤 node index.js 명령어 입력 후 액세..
1. node.js 설치 https://nodejs.org/ko/ Node.js Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine. nodejs.org 둘중 하나 다운,, 나는 이전 버전으로 받았다 2.Help -> Eclipse Marketplace 에서 node 검색 Nodeclipse를 다운받는다. 열시미 다운중,, 끝나면 alert창에 Restart Now 눌러주면된다. 이클립스 재시작해보면 node 생긴거 확인가능하다 쉽죠오 2020/07/15 - [WEB/Node.js] - node.js 프로젝트 생성