{"id":25244589,"url":"https://github.com/doannc2212/nestjs-starter","last_synced_at":"2026-04-14T05:31:35.713Z","repository":{"id":276918579,"uuid":"911012166","full_name":"doannc2212/nestjs-starter","owner":"doannc2212","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-25T11:27:59.000Z","size":579,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T21:12:34.258Z","etag":null,"topics":["bun","clean-architecture","cqrs","cqrs-architectural-pattern","docker","domain-driven-design","graphql","grpc","javascript","nestjs","schema-first","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/doannc2212.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2025-01-02T03:34:09.000Z","updated_at":"2025-03-25T11:28:04.000Z","dependencies_parsed_at":"2025-03-25T12:35:31.354Z","dependency_job_id":null,"html_url":"https://github.com/doannc2212/nestjs-starter","commit_stats":null,"previous_names":["doannc2212/nestjs-starter"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/doannc2212/nestjs-starter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doannc2212%2Fnestjs-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doannc2212%2Fnestjs-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doannc2212%2Fnestjs-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doannc2212%2Fnestjs-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/doannc2212","download_url":"https://codeload.github.com/doannc2212/nestjs-starter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doannc2212%2Fnestjs-starter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31784251,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T02:24:21.117Z","status":"ssl_error","status_checked_at":"2026-04-14T02:24:20.627Z","response_time":153,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["bun","clean-architecture","cqrs","cqrs-architectural-pattern","docker","domain-driven-design","graphql","grpc","javascript","nestjs","schema-first","typeorm","typescript"],"created_at":"2025-02-12T01:26:27.402Z","updated_at":"2026-04-14T05:31:35.698Z","avatar_url":"https://github.com/doannc2212.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"I was unable to retrieve the current `README.md` file. Let's start with creating a new one. Here is a draft:\n\n---\n\n# NestJS Starter\n\n## Overview\n\nThis repository is a starter template for NestJS applications. It includes several essential features and configurations to help you get started quickly.\n\n## Features\n\n- **TypeORM Migration**: Seamlessly manage database migrations using TypeORM.\n- **CLEAN Architecture**: Implement a clean architecture to maintain scalable and maintainable code.\n- **gRPC**: Integrate gRPC for efficient communication between microservices.\n- **GraphQL**: Use GraphQL to build flexible and efficient APIs.\n- **Example API**: Includes examples for pagination, create, update, delete, and read operations.\n- **Error Handling and Interceptors**: Centralized error handling and custom interceptors for enhanced functionality.\n\n## Getting Started\n\n### Prerequisites\n\n- Node.js\n- Bun\n- Docker (optional for running databases)\n\n### Installation\n\n1. Clone the repository:\n\n   ```bash\n   git clone https://github.com/doannc2212/nestjs-starter.git\n   cd nestjs-starter\n   ```\n\n2. Install dependencies:\n\n   ```bash\n   bun install\n   ```\n\n3. Configure environment variables by copying `.dev.env` to `.env` and updating the values as needed.\n\n### Running the Application\n\nTo start the application, use the following command:\n\n```bash\nbun start:dev\n```\n\n### Database Migration\n\nTo run database migrations, use the following command:\n\n```bash\nbun migration:run\n```\n\nTo create database migrations, use the following command:\n\n```bash\nNAME=\u003cmigration-name\u003e bun migration:create\n```\n\n### Using gRPC\n\nTo use gRPC, configure your services and proto files, and start the gRPC server:\n\n### Using GraphQL\n\nTo use GraphQL, navigate to `/graphql` endpoint in your browser to access the GraphQL playground.\n\n## Example API\n\n### Pagination\n\nExample code for pagination:\n\n```typescript\n@Get()\nasync findAll(@Query() query: PaginationQueryDto) {\n  return this.service.findAll(query);\n}\n```\n\n### Create, Update, Delete, Read Operations\n\nExample code for creating a record:\n\n```typescript\n@Post()\nasync create(@Body() createDto: CreateDto) {\n  return this.service.create(createDto);\n}\n```\n\n## Error Handling and Interceptors\n\nCentralized error handling and custom interceptors are configured to manage responses and errors efficiently.\n\n## Todo\n\n- [x] Infrastrucutre\n- [x] Aggregate\n- [x] Repository\n- [x] Presentation (graphql and grpc)\n- [x] Service communication\n- [ ] Observability\n- [x] Linter config (commitlint and eslint)\n- [x] Formatter\n- [x] First api example\n- [ ] Implement transaction chaning. Be aware that asynclocalstorage is currently not work with bun in some case\nhttps://github.com/oven-sh/bun/issues/6393\n- [ ] take an eye on this: https://github.com/SocketSomeone/nestjs-resilience\n\n## License\n\nThis project is licensed under the MIT License.\n\n---\n\nFeel free to update or add any specific details as needed.\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoannc2212%2Fnestjs-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdoannc2212%2Fnestjs-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoannc2212%2Fnestjs-starter/lists"}