Vue
-
vue3 express mongoDB 개발환경 세팅Vue 2020. 12. 29. 18:44
Vue3 설치는 이전 포스팅 참조 Express 로 backend 폴더 설치 npm install -g express-generator express --view=pug backend cd backend npm install npm start 폴더에 app.js 내용 지운 후 다음과같은 코드 작성 또는 backend 폴더 생성 npm init -y npm install express TS 사용하기 src 폴더를 만들고 그 안에 app.ts 생성. 타입스크립트 사용시 모듈을 설치해주어야한다. npm install ts-node npm install -D typescript npm install -D tslint tsc --init 을 통해 tsconfig.json 파일 생성 후 "outDir": "dist..