1️⃣ NestJS란?

NestJS는 Node.js 위에서 작동하는 백엔드 프레임워크로,

백엔드 서버를 더 체계적이고 편하게 만들 수 있게 도와주는 도구.

🧩 특징


2️⃣ Controller / Service란?

NestJS에서는 역할을 나눠서 작업.

예를 들어, 학교에서 선생님이 출석 부르고, 행정실이 출석부를 관리하는 것처럼.

👨‍🏫 Controller

@Controller('user')
export class UserController {
  @Get()
  getAllUsers() {
    return this.userService.findAll(); // Service에게 부탁함
  }
}

🛠️ Service