{"id":21630563,"url":"https://github.com/catsmiaow/nestjs-project-performance","last_synced_at":"2025-08-25T16:09:39.530Z","repository":{"id":54788252,"uuid":"327842532","full_name":"CatsMiaow/nestjs-project-performance","owner":"CatsMiaow","description":"Node.js framework NestJS project for performance","archived":false,"fork":false,"pushed_at":"2025-08-19T01:26:02.000Z","size":721,"stargazers_count":41,"open_issues_count":0,"forks_count":8,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-23T09:38:10.119Z","etag":null,"topics":["fastify","nest","nestjs","node","nodejs","prisma","starter","swc","typescript","vitest"],"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/CatsMiaow.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,"zenodo":null}},"created_at":"2021-01-08T08:26:42.000Z","updated_at":"2025-08-19T01:26:05.000Z","dependencies_parsed_at":"2023-11-23T04:41:21.833Z","dependency_job_id":"27c8e817-2ff7-411d-84b5-d042597a2424","html_url":"https://github.com/CatsMiaow/nestjs-project-performance","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/CatsMiaow/nestjs-project-performance","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CatsMiaow%2Fnestjs-project-performance","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CatsMiaow%2Fnestjs-project-performance/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CatsMiaow%2Fnestjs-project-performance/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CatsMiaow%2Fnestjs-project-performance/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CatsMiaow","download_url":"https://codeload.github.com/CatsMiaow/nestjs-project-performance/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CatsMiaow%2Fnestjs-project-performance/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272092780,"owners_count":24872020,"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","status":"online","status_checked_at":"2025-08-25T02:00:12.092Z","response_time":1107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["fastify","nest","nestjs","node","nodejs","prisma","starter","swc","typescript","vitest"],"created_at":"2024-11-25T02:11:26.330Z","updated_at":"2025-08-25T16:09:39.521Z","avatar_url":"https://github.com/CatsMiaow.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nestjs-project-performance\n\nNode.js framework NestJS project for performance\n\nIf you focus on the performance or features of the module, you can consider using another module as an alternative in NestJS. \\\nIn this example, the changed modules are as follows.\n\n- [Fastify](https://docs.nestjs.com/techniques/performance) instead of `Express`\n- [MikroORM](https://docs.nestjs.com/recipes/mikroorm) with [@mikro-orm/nestjs](https://mikro-orm.io/docs/usage-with-nestjs) instead of `TypeORM`\n- [SWC](https://docs.nestjs.com/recipes/swc#swc) instead of `TypeScript compiler`\n- [Vitest](https://docs.nestjs.com/recipes/swc#vitest) with [vitest-mock-extended](https://www.npmjs.com/package/vitest-mock-extended) instead of `Jest`\n- [ESM](https://nodejs.org/api/esm.html) instead of `CommonJS`\n\n## Configuration\n\n1. Create a `.env` file\n   - Rename the [.env.sample](.env.sample) file to `.env` to fix it.\n2. Edit env config\n    - Edit the file in the [config/envs](src/config/envs) folder.\n    - `default`, `development`, `production`, `test`\n\n## Installation\n\n```sh\n# 1. node_modules\nnpm ci\n# 2. When synchronize database from existing entities\nnpm run entity:sync\n# 2-1. When import entities from an existing database\nnpm run entity:load\n```\n\n## Development\n\n```sh\nnpm run start:dev\n```\n\nRun [http://localhost:3000](http://localhost:3000)\n\n## Test\n\n```sh\nnpm test # exclude e2e\nnpm run test:e2e # only e2e\n```\n\n## Production\n\n```sh\n# define NODE_ENV and PORT\nnpm run build\n# NODE_ENV=production PORT=8000 node dist/app.js\nnode dist/app.js\n```\n\n## Documentation\n\n```sh\n# https://docs.nestjs.com/openapi/cli-plugin#swc-builder\n# Update the metadata before running the swagger server.\nnpm run esm bin/generate-metadata.ts\n# API, Swagger - src/swagger.ts\nnpm run doc:api #\u003e http://localhost:8000/api\n```\n\n## Implements\n\n- See [app](src/app.ts), [app.module](src/app.module.ts)\n- [Exceptions Filter](src/common/exceptions.filter.ts)\n- [Logging Context Middleware](src/common/logger-context.middleware.ts)\n- [Custom Logger](src/config/logger.config.ts) with nestjs-pino\n- [Configuration by Environment](src/config/envs)\n- [JWT Authentication](src/auth)\n- [CRUD API Sample](src/sample)\n- [Unit Test](src/sample/sample.controller.spec.ts)\n- [E2E Test](test/e2e)\n\n### Links\n\n- [Nest Project Structure](https://github.com/CatsMiaow/node-nestjs-structure)\n- [NestJS](https://docs.nestjs.com)\n- [Fastify](https://fastify.dev)\n- [MikroORM](https://mikro-orm.io)\n- [Vitest](https://vitest.dev)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcatsmiaow%2Fnestjs-project-performance","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcatsmiaow%2Fnestjs-project-performance","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcatsmiaow%2Fnestjs-project-performance/lists"}