typescript (2) 썸네일형 리스트형 TypeOrm 시작하기 (entity, Table생성) TypeScript와 TypeOrm의 초기 세팅은 이전 포스팅(아래 링크)에서 소개했습니다. 초기 설치와 세팅을 마친 후에 table에 대해 정의하는 폴더가 entity입니다. TypeScript와 Typeorm을 사용해 express 프로젝트 세팅 🧱 초기 설치 npm init : package.json 파일 생성 npm install -g typescript : grobal로 typescript 설치, 처음 프로젝트에서만 설치하면 된다. tsc --init : tsconfig.json 파일 생성 tsconfic.json 파일 수.. juhi.tistory.com 🥾 기본 @데코레이션 종류 import {Entity, PrimaryGeneratedColumn, Column, CreateDateColum.. TypeScript와 Typeorm을 사용해 express 프로젝트 세팅 🧱 초기 설치 npm init : package.json 파일 생성 npm install -g typescript : grobal로 typescript 설치, 처음 프로젝트에서만 설치하면 된다. tsc --init : tsconfig.json 파일 생성 tsconfic.json 파일 수정 Express에서 필요한 모듈 설치 npm install --save-dev @types/node npm install --save express body-parser npm install @types/express --save-dev ts-node 설치 package.json에서 npm start시 시작할 파일 지정 typeorm 설치 npm install typeorm --save npm install mysql -.. 이전 1 다음