# npm 미리 설치 필요
# tsc(typescript compiler) 설치
# 이후 tsc 명령어 사용 가능
$ npm install -g typescript
# tsconfig.json 파일 생성
$ tsc --init
$ npm install @types/node @types/express
# 개발환경에만 필요한 것들
# nodemon: 실행중 소스 변경시 반영
# ts-node: tsc를 거치지 않고 ts 실행 가능
$ npm install -D nodemon ts-node
# 웹서버는 express 사용
$ npm install express
# DB는 async, await를 지원하는 mysql2 사용
$ npm install mysql2
https://github.com/natae/TypeScript_APIServer 참고