깃이 설치되어 있다면, 아래 명령어로 깃을 통해 코드를 로컬에 복사
$ git clone https://github.com/swJava2018/lec_nodejs.git
깃이 설치되어 있지 않다면, "Desktop Down"을 클릭하여 코드를 로컬에 다운
code 버튼 > download zip
brew install node
아래 주소에서 vsCode를 다운받는다. https://code.visualstudio.com/download
$ node index.js
- Browser 열기
- http://127.0.0.1:3000/index.html
- http://127.0.0.1:3000/calculate/5/pow
- http://127.0.0.1:3000/calculate/5/factorial
- http://127.0.0.1:3000/lastTransaction/BTC
Ctrl + C 를 눌러서 종료