{"id":20171899,"url":"https://github.com/losefor/nest-starter","last_synced_at":"2025-09-21T16:30:46.681Z","repository":{"id":191926374,"uuid":"685058736","full_name":"losefor/nest-starter","owner":"losefor","description":"Production grade nest js starter Boilerplate project designed to kickstart the development of a Nest.js application with a focus on production-level quality, performance, and best practices.","archived":false,"fork":false,"pushed_at":"2023-09-10T07:29:01.000Z","size":1125,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-14T01:31:57.038Z","etag":null,"topics":["erd","nest","nestjs","node","nodejs","postgresql","prisma","sharpjs"],"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/losefor.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":"2023-08-30T12:33:44.000Z","updated_at":"2024-11-06T06:05:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"bbddb3b0-79fc-42dc-86af-d6a351e1b692","html_url":"https://github.com/losefor/nest-starter","commit_stats":null,"previous_names":["losefor/nest-starter-new"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/losefor%2Fnest-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/losefor%2Fnest-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/losefor%2Fnest-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/losefor%2Fnest-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/losefor","download_url":"https://codeload.github.com/losefor/nest-starter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233766023,"owners_count":18727034,"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":["erd","nest","nestjs","node","nodejs","postgresql","prisma","sharpjs"],"created_at":"2024-11-14T01:28:22.409Z","updated_at":"2025-09-21T16:30:46.261Z","avatar_url":"https://github.com/losefor.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Getting Started with Nest.js\n\nWelcome to your journey with Nest.js! This README provides an overview of how to set up a production-grade Nest.js application using some of the best tools and libraries available.\n\n## Prerequisites\n\nBefore you begin, ensure you have the following prerequisites installed:\n\n- Node.js (v14 or later)\n- npm or Yarn\n\n## Installation\n\n1. Clone this repository:\n\n```bash\n   git clone https://github.com/losefor/nest-starter\n   cd nest-starter\n```\n\n2.Install dependencies:\n\n```bash\nnpm install\n# or\nyarn install\n```\n\n## features\n\n### ERD (Auto generated)\n\n![Auto generated erd](./src/prisma/generated-erd.svg)\n\n### Versioning\n\nVersioning, especially in the context of software development and APIs, brings several benefits that contribute to efficient collaboration, compatibility, and overall project management\n\n## Production-Grade Tools and Libraries\n\nTo ensure the reliability, security, and performance of our Nest.js application in production, we should use the following tools and libraries:\n\n- [x] **express**: The foundation of Nest.js, providing a fast and minimalist web framework.\n- [x] **helmet**: Enhances security by setting appropriate HTTP headers.\n- [x] **morgan**: Logs incoming requests and responses for debugging and monitoring.\n- [x] **class-validator**: Data validation and sanitization to prevent vulnerabilities.\n- [x] **passport.js**: Authentication middleware with support for various strategies.\n- [x] **cors**: Middleware to handle Cross-Origin Resource Sharing.\n- [x] **pino**: Logging libraries for structured and customizable logs.\n- [x] **prisma**: A powerful Object-Relational Mapping library for database interactions.\n- [ ] **Memcached**: In-memory caching solutions for improved performance.\n- [ ] **nodemailer**: Sending emails, useful for features like password resets.\n  - [ ] Setup template system\n- [x] **pm2**: Process manager for monitoring, restarting, and load balancing.\n- [x] **helmet**: Content Security Policy middleware to prevent XSS attacks.\n- [x] **jest**: Testing frameworks for unit and integration tests.\n- [ ] **supertest**: Library for testing HTTP requests and responses.\n- [x] **eslint**: Static code analysis tool for code quality checks.\n- [x] **prettier**: Code formatting tool for maintaining consistent styles.\n- [x] **swagger**: Documenting your API endpoints for easy consumption.\n  - [x] security auth before entering swagger\n- [x] **i18n**: Localization functionality.\n- [x] **sharp**: Image manipulation library used for image optimization\n- [x] **@casl/ability**: ACL authorization\n  - [ ] Cache `ability` instance for recent active users\n- [ ] **husky**: Set up git hooks\n- [x] **multer**: Multipart handler to upload files\n  - [x] Digital ocean upload files\n  - [ ] Maintenance and Cleanup - Implement a routine to clean up unused or expired images from your storage solution. Set up cron jobs or background tasks to perform this cleanup.\n  - [ ] Monitoring and Logging - Set up monitoring and logging to track image-related activities, including uploads, retrievals, and errors. Monitoring helps you identify and address performance issues or anomalies.\n- [ ] **docker**: Docker image for the app\n\n## Contributing\n\nContributions are welcome! If you find any issues or have improvements to suggest, feel free to open a pull request.\n\nHappy coding!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flosefor%2Fnest-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flosefor%2Fnest-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flosefor%2Fnest-starter/lists"}