Node.js 셋팅
1. Node.js 설치
Node.js
Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine.
nodejs.org
안정적인 LTS로 설치한다.
2. 코드 에디터 설치
A hackable text editor for the 21st Century
At GitHub, we’re building the text editor we’ve always wanted: hackable to the core, but approachable on the first day without ever touching a config file. We can’t wait to see what you build with it.
atom.io
Visual Studio Code - Code Editing. Redefined
Visual Studio Code is a code editor redefined and optimized for building and debugging modern web and cloud applications. Visual Studio Code is free and available on your favorite platform - Linux, macOS, and Windows.
code.visualstudio.com
취향에 맞는 에디터 설치
설치 확인
1. 터미널 실행
2. 'node' 입력 후 버전 확인
3. console.log("hello world!); 코드 입력
Node.js 웹 서버 만들기
Node.js 웹 서버 만들기 main.js var http = require('http'); var fs = require('fs'); var app = http.createServer(function(request,response){ var url = request.url; if(request.url == '/'){ url = '/ind..
juni-official.tistory.com