{"id":20381242,"url":"https://github.com/zhuravlevma/nestjs-active-record","last_synced_at":"2026-04-20T07:01:54.866Z","repository":{"id":154479020,"uuid":"630928056","full_name":"zhuravlevma/nestjs-active-record","owner":"zhuravlevma","description":"Active Record for nest.js with layered architecture ✍️","archived":false,"fork":false,"pushed_at":"2023-05-22T15:03:16.000Z","size":456,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-04T22:34:32.946Z","etag":null,"topics":["active-record","ddd","ddd-example","design-patterns","example-project","layered-architecture","nestjs","typescript"],"latest_commit_sha":null,"homepage":"https://github.com/zhuravlevma/nestjs-active-record#schema","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zhuravlevma.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-21T13:38:07.000Z","updated_at":"2023-06-01T19:30:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"77f80cef-60a6-4814-bd1e-b633b16a6984","html_url":"https://github.com/zhuravlevma/nestjs-active-record","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zhuravlevma/nestjs-active-record","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhuravlevma%2Fnestjs-active-record","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhuravlevma%2Fnestjs-active-record/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhuravlevma%2Fnestjs-active-record/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhuravlevma%2Fnestjs-active-record/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zhuravlevma","download_url":"https://codeload.github.com/zhuravlevma/nestjs-active-record/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhuravlevma%2Fnestjs-active-record/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32036801,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T00:18:06.643Z","status":"online","status_checked_at":"2026-04-20T02:00:06.527Z","response_time":94,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["active-record","ddd","ddd-example","design-patterns","example-project","layered-architecture","nestjs","typescript"],"created_at":"2024-11-15T02:12:24.782Z","updated_at":"2026-04-20T07:01:54.849Z","avatar_url":"https://github.com/zhuravlevma.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Description\nThis is an example that was inspired by Vlad Kononov's book **[Learning DDD](https://learning.oreilly.com/library/view/learning-domain-driven-design/9781098100124/)**. This is an attempt to make a small piece with a layered architecture and Active Recording.\n![decision_tree](https://user-images.githubusercontent.com/44276887/234344566-9febf11d-347f-4fe0-98be-6e6cd878e596.png)\n\n\n## Schema\n```mermaid\n\n  flowchart TD\n    subgraph module1[module]\n    subgraph web[web]\n    controllers1(controllers) -- uses --\u003edtos1(dtos)\n    end\n    controllers1 -- uses --\u003e services1(service \u003c/br\u003e use case layer)\n    end\n\n    subgraph module2[module]\n    subgraph web2[web]\n    controllers2(controllers) -- uses --\u003edtos2(dtos)\n    end\n    controllers2 -- uses --\u003e services2(service \u003c/br\u003e use case layer)\n    end\n\n\n    services1 -- uses --\u003e respoitory1(repositories \u003c/br\u003e dal)\n    services1 -- uses --\u003e model1(models \u003c/br\u003e with domain logic)\n    respoitory1 -- uses --\u003e model1\n\n    services2 -- uses --\u003e respoitory2(repositories \u003c/br\u003e dal)\n    respoitory2 -- uses --\u003e model2\n    services2 -- uses --\u003e model2(models \u003c/br\u003e with domain logic)\n```\n\n## Installation\n\n```bash\n$ npm install\n```\n\n## Running the app\n\n```bash\n# development\n$ npm run start\n\n# watch mode\n$ npm run start:dev\n\n# production mode\n$ npm run start:prod\n```\n\n## Test\n\n```bash\n# unit tests\n$ npm run test\n\n# e2e tests\n$ npm run test:e2e\n\n# test coverage\n$ npm run test:cov\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhuravlevma%2Fnestjs-active-record","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzhuravlevma%2Fnestjs-active-record","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhuravlevma%2Fnestjs-active-record/lists"}