A progressive Node.js framework for building efficient and scalable server-side applications.
Nest framework TypeScript starter repository.
$ pnpm install
# development
$ pnpm run start
# watch mode
$ pnpm run start:dev
# production mode
$ pnpm run start:prod
# Local ELK Setting Init
$ docker buildx build -t ssamd-elasticsearch-with-nori -f Dockerfile.es-nori .
# Local ELK Run
$ docker-compose up --build
# unit tests
$ pnpm run test
# e2e tests
$ pnpm run test:e2e
# test coverage
$ pnpm run test:cov
import { Tspec } from 'tspec';
export type AuthorApiSpec = Tspec.DefineApiSpec<{
basePath: '/keywords'; // 기본 경로
tags: ['Keyword']; // 스웨거 태깅
paths: {
'/': {
get: {
summary: 'API 요약 - get';
responses: {
200: UserResDto;
};
};
post: {
summary: 'API 요약 - post';
requestBody: UserReqDto;
responses: {
201: UserResDto;
};
};
};
'/{id}': {
patch: {
summary: 'API 요약 - patch';
path: { id: number };
requestBody: UserReqDto;
responses: {
200: UserResDto;
};
};
delete: {
summary: 'API 요약 - delete';
path: { id: number };
responses: {
204: void;
};
};
};
};
}>;