{"id":17817910,"url":"https://github.com/0xtheprodev/nestjs-clean-example","last_synced_at":"2025-10-12T14:42:13.825Z","repository":{"id":41202868,"uuid":"507814008","full_name":"0xTheProDev/nestjs-clean-example","owner":"0xTheProDev","description":"Clean Architecture Example using NestJS on Fastify","archived":false,"fork":false,"pushed_at":"2023-05-12T09:03:17.000Z","size":831,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-02-28T06:57:51.307Z","etag":null,"topics":["clean-architecture","fastify","graphql","hexagonal-architecture","nestjs","openapi","openapi3","repository-pattern","rest-api","swagger-ui","typeorm","typescript"],"latest_commit_sha":null,"homepage":"","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/0xTheProDev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"0xTheProDev"}},"created_at":"2022-06-27T07:53:29.000Z","updated_at":"2024-03-28T21:38:53.000Z","dependencies_parsed_at":"2024-10-27T17:18:30.261Z","dependency_job_id":"f724419a-8b5c-49a8-bd80-7d621a3da996","html_url":"https://github.com/0xTheProDev/nestjs-clean-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xTheProDev%2Fnestjs-clean-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xTheProDev%2Fnestjs-clean-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xTheProDev%2Fnestjs-clean-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xTheProDev%2Fnestjs-clean-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0xTheProDev","download_url":"https://codeload.github.com/0xTheProDev/nestjs-clean-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243902293,"owners_count":20366259,"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":["clean-architecture","fastify","graphql","hexagonal-architecture","nestjs","openapi","openapi3","repository-pattern","rest-api","swagger-ui","typeorm","typescript"],"created_at":"2024-10-27T16:46:42.138Z","updated_at":"2025-10-12T14:42:13.709Z","avatar_url":"https://github.com/0xTheProDev.png","language":"TypeScript","funding_links":["https://github.com/sponsors/0xTheProDev"],"categories":[],"sub_categories":[],"readme":"# nestjs-clean-example\n\n[![TypeScript](https://img.shields.io/badge/typescript-%23007ACC.svg?style=for-the-badge\u0026logo=typescript\u0026logoColor=white)](https://typescriptlang.org/)\n[![NodeJS](https://img.shields.io/badge/node.js-6DA55F?style=for-the-badge\u0026logo=node.js\u0026logoColor=white)](https://nodejs.org/)\n[![NestJS](https://img.shields.io/badge/nestjs-%23E0234E.svg?style=for-the-badge\u0026logo=nestjs\u0026logoColor=white)](https://nestjs.com/)\n[![Fastify](https://img.shields.io/badge/fastify-%23000000.svg?style=for-the-badge\u0026logo=fastify\u0026logoColor=white)](https://www.fastify.io/)\n[![OpenAPI](https://img.shields.io/badge/openapi-6BA539?style=for-the-badge\u0026logo=openapi-initiative\u0026logoColor=fff)](https://www.openapis.org/)\n[![GraphQL](https://img.shields.io/badge/-GraphQL-E10098?style=for-the-badge\u0026logo=graphql\u0026logoColor=white)](https://graphql.org/)\n[![ESLint](https://img.shields.io/badge/ESLint-4B3263?style=for-the-badge\u0026logo=eslint\u0026logoColor=white)](https://eslint.org)\n[![Prettier](https://img.shields.io/badge/Prettier-black?style=for-the-badge\u0026logo=prettier\u0026logoColor=white)](https://prettier.io)\n[![Open Issues](https://img.shields.io/github/issues-raw/0xTheProDev/nestjs-clean-example?style=for-the-badge)](https://github.com/0xTheProDev/nestjs-clean-example/issues)\n[![Closed Issues](https://img.shields.io/github/issues-closed-raw/0xTheProDev/nestjs-clean-example?style=for-the-badge)](https://github.com/0xTheProDev/nestjs-clean-example/issues?q=is%3Aissue+is%3Aclosed)\n[![Open Pulls](https://img.shields.io/github/issues-pr-raw/0xTheProDev/nestjs-clean-example?style=for-the-badge)](https://github.com/0xTheProDev/nestjs-clean-example/pulls)\n[![Closed Pulls](https://img.shields.io/github/issues-pr-closed-raw/0xTheProDev/nestjs-clean-example?style=for-the-badge)](https://github.com/0xTheProDev/nestjs-clean-example/pulls?q=is%3Apr+is%3Aclosed)\n[![Contributors](https://img.shields.io/github/contributors/0xTheProDev/nestjs-clean-example?style=for-the-badge)](https://github.com/0xTheProDev/nestjs-clean-example/graphs/contributors)\n[![Activity](https://img.shields.io/github/last-commit/0xTheProDev/nestjs-clean-example?style=for-the-badge\u0026label=most%20recent%20activity)](https://github.com/0xTheProDev/nestjs-clean-example/pulse)\n\n## Description\n\n_Example Application Interface using NestJS framework in TypeScript_\n\nThis example showcases Repository Pattern in Hexagonal Architecture _(also known as Clean Architecture)_. Here we have two Entities - Books and Authors, whose relationships have been exploited to create CRUD endpoint in REST under OpenAPI standard.\n\n## Installation\n\n- Install all the project dependency using [Yarn](https://yarnpkg.com):\n\n  ```sh\n  $ yarn\n  ```\n\n- Run the application from command prompt:\n\n  ```sh\n  $ yarn start\n  ```\n\n## Testing\n\n- Run the following command to initiate Unit test:\n  ```sh\n  $ yarn test\n  ```\n- Run the following command to initiate E2E test:\n  ```sh\n  $ yarn test:e2e\n  ```\n\n## License\n\n\u0026copy; MIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xtheprodev%2Fnestjs-clean-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0xtheprodev%2Fnestjs-clean-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xtheprodev%2Fnestjs-clean-example/lists"}