How We Coding

< Typescript 란? >




< 개발환경 세팅 >


1) Node.js 설치 (https://nodejs.org/)


2) package.json 만들기

$ npm init


2) Express 설치

$ npm install express --save


3) Typescript 설치

$ npm install -g typescript


4) compile

$ tsp filename.ts


>> tsconfig.json 파일이 있는 경우

$ tsc --p tsconfig.json


5) 실행하기

$ sudo node 파일명 (확장자 없이)









'H6 > backend (Node.js, tsc)' 카테고리의 다른 글

<6> tsconfig.json 을 통한 컴파일 옵션 설정  (0) 2018.01.31
<5> node-mysql (Typescript)  (0) 2018.01.22
<4> MySQL & node-mysql  (0) 2018.01.22
<3> 에러처리..  (0) 2018.01.22
<2> app.ts 및 server.ts 만들기  (0) 2018.01.22