nestjs-clean-architecture
Example repo of an Nest.JS app following the clean architecture principles
File Explorer
- 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
# Use via CDN
jsDelivrjsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.
Command Glossary
Commands referenced in this DOCs, explained below.
docker compose up
View Details ▼
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
View Details ▼
yarn
JavaScript and Node.js package manager alternative.
yarn global add {{module_name}}
Install a module globally:
yarn install
Install all dependencies referenced in the `package.json` file (the `install` is optional):
yarn add {{module_name}}@{{version}}
Install a module and save it as a dependency to the `package.json` file (add `--dev` to save as a dev dependency):
