NEST
-
nest의 hello world!typescript+nestjs 2025. 1. 15. 15:21
import { NestFactory } from '@nestjs/core';import { AppModule } from './app.module';async function bootstrap() { const app = await NestFactory.create(AppModule); await app.listen(process.env.PORT ?? 3000);}bootstrap();시작하면 main.ts가 실행된다main.ts는 ./app.module에 존재하는 AppModule class를 실행시킨다import { Module } from '@nestjs/common';import { AppController } from './app.controller';import { AppService }..
-
nest js의 기본 구조 설명typescript+nestjs 2025. 1. 15. 13:42
유튜브 보면서 네스트를 배우는 중이다.https://www.youtube.com/watch?v=3JminDpCJNE&t=538s난 정말 공부하기 쉬운 시대에 태어난 것 같다 ㅠ.eslintrc.js : 개발자드링 특정한 규칙을 가지고 코드를 깔끔하게 짤 수 있게 도와주는 라이브러리prettierrc: 주로 코드 형식을 맞추는데 사용, ' 혹은 " , indent값을 2로 줄지 4로 줄지 등, 코드포멧터 역할!nest-cli.json: nest프로젝트를 위해 특정한 설정을 할 수 있는 json파일tsconfig.json:어떻게 타입스크립트를 컨파일할지 설정tsconfig.build.json: tsconfig.json의 연장선상 파일이며, 빌드를 할 때 필요한 성정들 "excludes"에서는 빌드할 때 필요..
-
nest new new-project Errortypescript+nestjs 2025. 1. 14. 20:12
ㅎㅇsemihan@semiui-MacBookAir ~ % nest new new-project하고? Which package manager would you ❤️ to use? npm여기까진 다들 했을 것이다그러면 이렇게 Installation in progress....하고 아ㅏㅏ주 오랫동안 기다려도 아무 반응이 안일어나는 사람들을 위해 글을 쓴다이것저것 검색해보면 kt 통신망에서는 npm이 안된다는 글을 보고npm config set registry https://registry.npmjs.cf/이거 해보고다시 해봤을거다 역시 안된다테더링도 해봤을거다 역시 안된다npm config set registry https://registry.npmjs.org/우선 원래대로 바꿔줘라저 문제는 뭔가 24년에는 ..
-
nest new new-project Error2typescript+nestjs 2025. 1. 14. 20:11
로그 다시 까보면npm error code EEXISTnpm error syscall mkdirnpm error path /Users/semihan/.npm/_cacache/content-v2/sha512/3d/e3npm error errno EEXISTnpm error Invalid response body while trying to fetch https://registry.npmjs.org/@nestjs%2fcore: EACCES: permission denied, mkdir '/Users/semihan/.npm/_cacache/content-v2/sha512/3d/e3'npm error File exists: /Users/semihan/.npm/_cacache/content-v2/sha512/3d..