{"id":13847383,"url":"https://github.com/ecaminero/nestjs-ddd","last_synced_at":"2025-07-12T09:31:47.798Z","repository":{"id":45509088,"uuid":"195142392","full_name":"ecaminero/nestjs-ddd","owner":"ecaminero","description":"Nestjs DDD","archived":false,"fork":false,"pushed_at":"2024-01-06T12:12:34.000Z","size":220,"stargazers_count":186,"open_issues_count":0,"forks_count":32,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-08-04T18:02:32.743Z","etag":null,"topics":["ddd-architecture","nodejs","npm","programming","typescript","yarn"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ecaminero.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-07-04T00:19:15.000Z","updated_at":"2024-08-01T11:28:48.000Z","dependencies_parsed_at":"2024-01-15T20:49:49.952Z","dependency_job_id":"2a95069a-63ce-43d6-a521-2fd831b040b0","html_url":"https://github.com/ecaminero/nestjs-ddd","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecaminero%2Fnestjs-ddd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecaminero%2Fnestjs-ddd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecaminero%2Fnestjs-ddd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecaminero%2Fnestjs-ddd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ecaminero","download_url":"https://codeload.github.com/ecaminero/nestjs-ddd/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225812883,"owners_count":17528081,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ddd-architecture","nodejs","npm","programming","typescript","yarn"],"created_at":"2024-08-04T18:01:18.549Z","updated_at":"2024-11-21T22:30:19.029Z","avatar_url":"https://github.com/ecaminero.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"\n# NestJs Clean Arquitecture\nMutation test - stiker \nThis is an example of using DDD with nestjs, only for proof of concept and framework study\nIf you want more documentation of it, click here [Nest](https://github.com/nestjs/nest) \n\n[A quick introduction to clean architecture](https://www.freecodecamp.org/news/a-quick-introduction-to-clean-architecture-990c014448d2/)\n\n![alt text](https://cdn-media-1.freecodecamp.org/images/oVVbTLR5gXHgP8Ehlz1qzRm5LLjX9kv2Zri6)\n\n  \n\n## Branch Definitions\n * **master**: Flat structure with mongo connection\n * **flat-structure-sql**: Flat structure with connection to sqlite can be easily changed to any connection that allows sequelizejs\n * **hexagonal-architecture**: Exagonal structure with mongo connection \n\n## Getting Started\n\n```\ngit clone git@github.com:ecaminero/nestjs-ddd.git\n```\n\n### Structure\n```\n.\n├── doc\n│   ├── *.http\n├── src\n│   ├── app\n│   │   ├── __test__\n│   │   │   └── *.controller.spec.ts\n│   │   ├── controller\n│   │   │   └── *.controller.ts\n│   │   ├── dto\n│   │   │   └── *.dto.ts\n│   │   ├── interceptors\n│   │   │   └── *.interceptor.ts\n│   │   └── middlewere\n│   │       └── *.middleware.ts\n│   ├── domain\n│   │   ├── __test__\n│   │   │   └── *.service.spec.ts\n│   │   ├── entities\n│   │   │   └── *.entity.ts\n│   │   └── service\n│   │       └── *.service.ts\n│   ├── infrastructure\n│   │   ├── database\n│   │   │   └── *.providers.ts\n│   │   ├── health\n│   │   │   └── *.check.ts\n│   │   ├── model\n│   │   │   └── *.model.ts\n│   │   └── repository\n│   │       └── *.repository.ts\n│   ├── main.ts\n│   ├── app.module.ts\n│   ├── constants.ts\n├── test\n│   ├── app.e2e-spec.ts\n│   └── jest-e2e.json\n├── jest.config.json\n├── localhost.sqlite\n├── nest-cli.json\n├── nodemon-debug.json\n├── nodemon.json\n├── package-lock.json\n├── package.json\n├── README.md\n├── tsconfig.build.json\n├── tsconfig.json\n└── tslint.json\n\n```\n\n### Prerequisites\n\n  * node 10+\n  * mongo DB \n  * Sqlite\n\n```bash\n$ docker run --name dev-mongo -p 27017:27017 -d mongo\n```\n\n### Installing\n\n  ```bash\n$ npm install \n```\n\nIf you see this everything all fine \n```\n\nadded 898 packages from 578 contributors and audited 876746 packages in 11.087s\nfound 0 vulnerabilities\n\n```\n\n## Running the tests\n\n```bash\n# unit tests\n$ npm run test\n\n# e2e tests\n$ npm run test:e2e\n\n# coverage\n$ npm run test:cov\n\n```\n\n\n## Built With\n\n* [Nest](https://github.com/nestjs/nest)  - The framework used\n\n* [Mongoosejs](https://mongoosejs.com/) - elegant object modeling for Nodejs\n\n* [node.js](https://nodejs.org/en/)- Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine\n\n* [jestjs](https://jestjs.io/en/) Jest is a delightful JavaScript Testing Framework with a focus on simplicity\n\n* [sequelizejs](http://docs.sequelizejs.com/) Sequelize is a promise-based Node.js ORM for Postgres, MySQL, MariaDB, SQLite and Microsoft SQL Server. It features solid transaction support, relations, eager and lazy loading, read replication and more.\n\n\n## Authors\n\n*  **Edwin Caminero** - *Initial work* - [github](https://github.com/ecaminero)\n\nSee also the list of [contributors](https://github.com/ecaminero/nestjs-ddd/contributors) who participated in this project.\n\n  \n## License\n\nThis project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details\n\n\n## Acknowledgments\n\n* Inspiration\n* Hexagonal architecture concept tests\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fecaminero%2Fnestjs-ddd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fecaminero%2Fnestjs-ddd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fecaminero%2Fnestjs-ddd/lists"}