{"id":25168225,"url":"https://github.com/netkosolution/nestjs-boilerplate","last_synced_at":"2026-04-07T18:32:39.248Z","repository":{"id":276242721,"uuid":"928687524","full_name":"netkosolution/nestjs-boilerplate","owner":"netkosolution","description":"🚀🎉📚 A feature-rich NestJS starter with built-in enterprise-grade architecture and popular libraries. Supports TypeScript, PostgreSQL/MySQL, TypeORM, JWT Authentication, Docker, and other essential features.","archived":false,"fork":false,"pushed_at":"2025-02-07T06:49:54.000Z","size":172,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-03T18:52:30.107Z","etag":null,"topics":["auth","boilerplate","ci","crud","database","docker","e2e","mailling","mongodb","mongoose","nestjs","nestjs-boilerplate","nodejs","rbac","seed","swagger","typeorm","typescript"],"latest_commit_sha":null,"homepage":"https://netko-solution.com/nestjs-boilerplate","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/netkosolution.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":"2025-02-07T03:52:06.000Z","updated_at":"2025-02-07T06:49:57.000Z","dependencies_parsed_at":"2025-04-03T18:48:37.046Z","dependency_job_id":"a5b95024-5ae7-42d0-bf1a-b22543f27abc","html_url":"https://github.com/netkosolution/nestjs-boilerplate","commit_stats":null,"previous_names":["netkosolution/nestjs-boilerplate"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/netkosolution/nestjs-boilerplate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netkosolution%2Fnestjs-boilerplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netkosolution%2Fnestjs-boilerplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netkosolution%2Fnestjs-boilerplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netkosolution%2Fnestjs-boilerplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/netkosolution","download_url":"https://codeload.github.com/netkosolution/nestjs-boilerplate/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netkosolution%2Fnestjs-boilerplate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31524525,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T16:28:08.000Z","status":"ssl_error","status_checked_at":"2026-04-07T16:28:06.951Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["auth","boilerplate","ci","crud","database","docker","e2e","mailling","mongodb","mongoose","nestjs","nestjs-boilerplate","nodejs","rbac","seed","swagger","typeorm","typescript"],"created_at":"2025-02-09T07:16:26.402Z","updated_at":"2026-04-07T18:32:39.163Z","avatar_url":"https://github.com/netkosolution.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NestJS Boilerplate - Quick Start for Your API Project\n\n**A feature-rich and production-ready NestJS starter** with built-in enterprise-grade architecture and popular libraries. Supports TypeScript, PostgreSQL/MySQL, TypeORM, JWT Authentication, Docker, and other essential features.\n\n## Features\n\n- 🚀 Built with NestJS 10.x \u0026 Node.js 18+\n- 📝 TypeScript for type safety and better development experience\n- 🏗️ Clean Architecture and Domain-Driven Design principles\n- 🔐 JWT Authentication \u0026 Role-based Authorization\n- 🔐 Sign in and sign up via email.\n- 🔐 Social sign in (Apple, Facebook, Google, Twitter).\n- 🔐 RBAC with custom Roles and Permissions\n- 🗃️ TypeORM with PostgreSQL integration\n- 📊 Swagger API documentation\n- 🔍 Request validation using class-validator\n- 🎯 Unit \u0026 Integration testing setup with Jest\n- 📝 E2E testing with Supertest\n- 🔄 CI/CD pipeline with GitHub Actions\n- 🐳 Docker \u0026 Docker Compose configuration\n- 📊 Winston Logger integration\n- 🔍 Error handling \u0026 logging middleware\n- 📧 Mailer service integration\n- 🔄 Database migrations and seeders\n- 📝 ESLint \u0026 Prettier configuration\n- 💾 Redis for caching\n- 🔄 Bull for queue management\n- 📊 Health checks endpoints\n\n## Prerequisites\n\n- Node.js 18+\n- PostgreSQL\n- Redis\n- Docker (optional)\n\n## Getting Started\n\n### Installation\n\n```bash\n# Clone the repository\ngit clone https://github.com/yourusername/nestjs-boilerplate.git\n\n# Install dependencies\nnpm install\n```\n\n### Configuration\n\n1. Copy `.env.example` to `.env`\n```bash\ncp .env.example .env\n```\n\n2. Update environment variables in `.env` file\n\n### Running the app\n\n```bash\n# Development\nnpm run start:dev\n\n# Production mode\nnpm run start:prod\n\n# Using Docker\ndocker-compose up\n```\n\n### Running tests\n\n```bash\n# Unit tests\nnpm run test\n\n# E2E tests\nnpm run test:e2e\n\n# Test coverage\nnpm run test:cov\n```\n\n## Project Structure\n\n```\nsrc/\n├── config/           # Configuration files\n├── core/            # Core modules, guards, decorators\n├── modules/         # Feature modules\n│   ├── auth/       \n│   ├── users/      \n│   └── ...         \n├── shared/          # Shared resources\n└── main.ts         # Application entry point\n```\n### Auth Module\n\n```\nsrc/\n└── modules/\n    └── auth/\n        ├── domain/                  # Domain layer\n        │   ├── entities/           # Domain entities\n        │   ├── value-objects/      # Value objects\n        │   ├── repositories/       # Repository interfaces\n        │   └── services/          # Domain services\n        │\n        ├── infrastructure/          # Infrastructure layer\n        │   ├── persistence/        # Database related\n        │   │   ├── entities/      # TypeORM entities\n        │   │   ├── repositories/  # TypeORM repositories\n        │   │   └── migrations/    # Database migrations\n        │   ├── services/          # External services implementation\n        │   └── security/          # Security related implementations\n        │\n        ├── interfaces/              # Interface layer\n        │   ├── http/              # HTTP controllers\n        │   │   ├── controllers/\n        │   │   ├── middlewares/\n        │   │   ├── guards/\n        │   │   └── dtos/\n        │   └── graphql/           # GraphQL resolvers (if needed)\n        │\n        ├── services/               # Application Services\n        │   ├── auth.service.ts\n        │   └── social-auth.service.ts\n        │\n        └── auth.module.ts          # Module definition \n```\n\n## API Documentation\n\nOnce the application is running, you can access the Swagger documentation at:\n```\nhttp://localhost:3000/api/docs\n```\n\n## Database Migrations\n\n```bash\n# Generate migration\nnpm run migration:generate -- src/modules/auth/infrastructure/persistence/migrations/CreateUsersTable\n\n# Run migrations\nnpm run migration:run\n\n# Revert migrations\nnpm run migration:revert\n```\n## Contributing\n\n1. Fork the repository\n2. Create your feature branch (`git checkout -b feature/amazing-feature`)\n3. Commit your changes (`git commit -m 'Add some amazing feature'`)\n4. Push to the branch (`git push origin feature/amazing-feature`)\n5. Open a Pull Request\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## Support\n\nIf you find this project useful, please give it a ⭐️ on GitHub!\n\n## Authors\n\n- NETKO Solution\n\n## Acknowledgments\n\n- NestJS Team for the amazing framework\n- The open-source community for inspiration and support\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetkosolution%2Fnestjs-boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnetkosolution%2Fnestjs-boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetkosolution%2Fnestjs-boilerplate/lists"}