애플리케이션에서 사용한 코드 및 환경
Nest.js, TypeScript
app.servicr.ts
import { Injectable } from '@nestjs/common';
@Injectable()
export class AppService {
getHealthCheck(): string {
return 'Success Health Check';
}
}
app.controller.ts
import { Controller, Get, HttpCode } from '@nestjs/common';
import { AppService } from './app.service';
@Controller()
export class AppController {
constructor(private readonly appService: AppService) {}
@Get('/health')
@HttpCode(200)
getHealthCheck(): string {
return this.appService.getHealthCheck();
}
}
'서버 & 웹 개발 노트 > AWS' 카테고리의 다른 글
[ AWS ] S3 버킷 생성 (0) | 2024.09.12 |
---|---|
[ AWS ] ELB 에 도메인 연결 및 HTTPS 설정하기 (0) | 2024.08.09 |
[ AWS ] Elastic Load Balancer (ELB) 와 SSL/TLS (0) | 2024.08.08 |
[ AWS ] RDS 와 DBeaver 에 연결하기 (0) | 2024.08.06 |
[ AWS ] RDS 사용하기 (0) | 2024.08.06 |