nest.js 패키지 설치
한방설치
npm i -g @nestjs/cli&&
npm i --save @nestjs/typeorm typeorm mysql2&&
npm i uuid&&
npm i -D @types/uuid&&
nest g module auth&&
npm i --save class-validator class-transformer&&
npm i @nestjs/jwt @nestjs/passport passport passport-jwt&&
npm i @types/passport-jwt --save&&
npm i @nestjs/mapped-types&&
npm i --save cookie-parser&&
npm i --save-dev @types/cookie-parser&&
npm i --save @nestjs/config&&
npm i config --save&&
npm i --save dotenv&&
npm i --save-dev @types/dotenv&&
npm i -g win-node-env&&
npm install bcryptjs
mysql orm
npm i --save @nestjs/typeorm typeorm mysql2
uuid
npm i uuid
npm i -D @types/uuid
인증( auth )
nest g module auth
module, controller, service
nest g module ${service명} --no-spec
nest g controller ${controller명} --no-spec
nest g service ${service명} --no-spec
validation
npm i --save class-validator class-transformer
jwt
npm i @nestjs/jwt @nestjs/passport passport passport-jwt
npm i @types/passport-jwt --save
mapped types( parialtype )
npm i @nestjs/mapped-types
cookie 관련 패키지
npm i --save cookie-parser
npm i --save-dev @types/cookie-parser
config
npm i --save @nestjs/config
npm i -g win-node-env( 윈도일때만 )