{"id":16036759,"url":"https://github.com/leosuncin/nest-typeorm-custom-repository","last_synced_at":"2025-03-17T16:31:04.932Z","repository":{"id":38088094,"uuid":"195901038","full_name":"leosuncin/nest-typeorm-custom-repository","owner":"leosuncin","description":"TypeORM with a Custom Repository","archived":false,"fork":false,"pushed_at":"2025-02-23T19:14:36.000Z","size":1873,"stargazers_count":54,"open_issues_count":7,"forks_count":12,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-25T08:44:55.387Z","etag":null,"topics":["example-project","nestjs","nodejs","sqlite3","supertest","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/leosuncin.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":"2019-07-08T23:53:45.000Z","updated_at":"2025-02-23T19:12:46.000Z","dependencies_parsed_at":"2023-10-01T21:43:22.418Z","dependency_job_id":"86241614-642b-4720-9d09-5af0dd78d8f4","html_url":"https://github.com/leosuncin/nest-typeorm-custom-repository","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leosuncin%2Fnest-typeorm-custom-repository","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leosuncin%2Fnest-typeorm-custom-repository/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leosuncin%2Fnest-typeorm-custom-repository/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leosuncin%2Fnest-typeorm-custom-repository/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leosuncin","download_url":"https://codeload.github.com/leosuncin/nest-typeorm-custom-repository/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243871644,"owners_count":20361378,"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":["example-project","nestjs","nodejs","sqlite3","supertest","typeorm","typescript"],"created_at":"2024-10-08T22:08:36.695Z","updated_at":"2025-03-17T16:31:04.594Z","avatar_url":"https://github.com/leosuncin.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🗄️ Nest.js + TypeORM with a Custom Repository\n\n[![MegaLinter](https://github.com/leosuncin/nest-typeorm-custom-repository/workflows/MegaLinter/badge.svg?branch=master)](https://github.com/leosuncin/nest-typeorm-custom-repository/actions/workflows/mega-linter.yml)\n[![Tests](https://github.com/leosuncin/nest-typeorm-custom-repository/workflows/Tests/badge.svg?branch=master)](https://github.com/leosuncin/nest-typeorm-custom-repository/actions/workflows/tests.yml)\n![Prettier](https://img.shields.io/badge/Code%20style-prettier-informational?logo=prettier\u0026logoColor=white)\n[![MIT License](https://img.shields.io/badge/License-MIT-green.svg)](./LICENSE)\n[![HitCount](https://hits.dwyl.com/leosuncin/nest-typeorm-custom-repository.svg)](https://hits.dwyl.com/leosuncin/nest-typeorm-custom-repository)\n\n\u003e An example of how to use a custom repository of TypeORM within Nest.js  \n\u003e **🚨 NOTICE 🚨** this example now works with TypeORM v0.3.x for previous version check out [v1.0.0](https://github.com/leosuncin/nest-typeorm-custom-repository/tree/v1.0.0)\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"http://nestjs.com/\" target=\"blank\"\u003e\u003cimg src=\"https://nestjs.com/img/logo_text.svg\" width=\"320\" alt=\"Nest Logo\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n## Features\n\n- [TypeORM](https://typeorm.io/) with custom repository\n- Unit tests and E2E tests\n- Check code quality with [MegaLinter](https://oxsecurity.github.io/megalinter/latest/)\n- Run tests with [github actions](.github/workflows/tests.yml)\n\n## Run Locally\n\nClone the project\n\n```bash\n  git clone https://github.com/leosuncin/nest-typeorm-custom-repository.git\n```\n\nGo to the project directory\n\n```bash\n  cd nest-typeorm-custom-repository\n```\n\nInstall dependencies\n\n```bash\n  yarn install\n```\n\nStart the server\n\n```bash\n  yarn start:dev\n```\n\n## Running Tests\n\nTo run unit tests, run the following command:\n\n```bash\n  pnpm test\n```\n\nTo run e2e tests (the MySQL instance must be available), run the following command:\n\n```bash\n  pnpm test:e2e\n```\n\n## Tech Stack\n\n**Server:** Typescript, SQLite, Nest.js, TypeORM\n\n**Test:** Jest, SuperTest\n\n## Author\n\n👤 **Jaime Leonardo Suncin Cruz**\n\n- Twitter: [@jl_suncin](https://twitter.com/jl_suncin)\n- Github: [@leosuncin](https://github.com/leosuncin)\n- LinkedIn: [@jaimesuncin](https://linkedin.com/in/jaimesuncin)\u003c!-- markdown-link-check-disable-line --\u003e\n\n## Show your support\n\nGive a ⭐️ if this project helped you!\n\n## Related\n\nHere are some more example projects with Nest.js\n\n[![Authentication example](https://github-readme-stats.vercel.app/api/pin/?username=leosuncin\u0026repo=nest-auth-example)](https://github.com/leosuncin/nest-auth-example)\n\n[![API example](https://github-readme-stats.vercel.app/api/pin/?username=leosuncin\u0026repo=nest-api-example)](https://github.com/leosuncin/nest-api-example)\n\n[![GraphQL example](https://github-readme-stats.vercel.app/api/pin/?username=leosuncin\u0026repo=nest-graphql-example)](https://github.com/leosuncin/nest-graphql-example)\n\n## License\n\nRelease under the terms of [MIT](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleosuncin%2Fnest-typeorm-custom-repository","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleosuncin%2Fnest-typeorm-custom-repository","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleosuncin%2Fnest-typeorm-custom-repository/lists"}