nestjs-clean-architecture
Example repo of an Nest.JS app following the clean architecture principles
파일 탐색기
- author.ts
- base-entity.interface.ts
- base.entity.spec.ts
- base.entity.ts
- book.ts
- author.interface.ts
- book.interface.ts
- authors-repository.interface.ts
- books-repository.interface.ts
- notifications-service.interface.ts
- create-author.usecase.spec.ts
- create-author.usecase.ts
- get-all-authors.usecase.spec.ts
- get-all-authors.usecase.ts
- get-author-by-id.usecase.spec.ts
- get-author-by-id.usecase.ts
- create-book.usecase.spec.ts
- create-book.usecase.ts
- get-all-books.usecase.spec.ts
- get-all-books.usecase.ts
- get-book-by-id.usecase.spec.ts
- get-book-by-id.usecase.ts
- base-use-case.interface.ts
- use-cases.module.ts
- auth.module.ts
- auth.service.ts
- author.entity.ts
- book.entity.ts
- authors.repository.ts
- books.repository.ts
- constants.ts
- database.module-definition.ts
- database.module.ts
- authors.mock.ts
- books.mock.ts
- authors.repository.spec.ts
- authors.repository.ts
- books.repository.spec.ts
- books.repository.ts
- mock-database.module.ts
- mock-notifications.module.ts
- notifications.service.ts
- constants.ts
- emails.service.spec.ts
- emails.service.ts
- resend-emails.module.ts
- resend-emails.moule-definition.ts
- author.dto.ts
- create-author.dto.ts
- authors.controller.spec.ts
- authors.controller.ts
- book.dto.ts
- create-book.dto.ts
- books.controller.spec.ts
- books.controller.ts
- controllers.module.ts
- could-not-create.exception.ts
- not-found.exception.ts
- auth-service.interface.ts
- auth.guard.spec.ts
- auth.guard.ts
- app.module.ts
- constants.ts
- main.ts
- providers.module.ts
- authors.e2e-spec.ts
- books.e2e-spec.ts
- jest-e2e.config.js
- .env.template
- .env.test
- .eslintrc.js
- .prettierrc
- jest.config.js
- nest-cli.json
- package.json
- README.md
- tsconfig.build.json
- tsconfig.json
- yarn.lock
- .gitignore
- clean-architecture.drawio
- docker-compose.yml
- README.md
# CDN으로 사용하기
jsDelivrjsDelivr는 공개 GitHub 리포지토리를 별도 설정 없이 CDN으로 즉시 서빙합니다. 버전과 파일을 고르면 웹페이지에 바로 붙일 수 있는 링크와 예시 코드가 만들어집니다.
명령어 용어집
이 문서에서 사용된 명령어를 모아봤습니다. 낯선 명령어가 있다면 펼쳐서 확인해보세요.
docker compose up
설명 보기 ▼
docker compose up
Start and run Docker services defined in a Compose file.
docker compose up
Start all services defined in the docker-compose file:
docker compose up {{[-d|--detach]}}
Start services in the background (detached mode):
docker compose up --build
Start services and rebuild images before starting:
yarn
설명 보기 ▼
yarn
JavaScript 및 Node.js 패키지 대체 관리자.
더 많은 정보: <https://yarnpkg.com/cli>.
yarn global add {{module_name}}
전역적으로 모듈 설치:
yarn install
`package.json` 파일에 참조된 모든 의존성을 설치 ( `install`은 선택 사항입니다):
yarn add {{module_name}}@{{version}}
모듈을 설치하고 `package.json` 파일에 대한 의존성으로 저장 (개발 전용 의존성으로 추가하려면 `--dev` 추가):
