{"id":20825050,"url":"https://github.com/bharatkalluri/nestjs-starter","last_synced_at":"2026-04-09T23:51:00.714Z","repository":{"id":55640738,"uuid":"321304370","full_name":"BharatKalluri/nestjs-starter","owner":"BharatKalluri","description":"NestJS + TS + MongoDB using Mongoose + Firebase auth + AWS + Swagger + ESLint + Prettier + Git hooks","archived":false,"fork":false,"pushed_at":"2024-03-18T06:32:19.000Z","size":1036,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-06T02:56:51.262Z","etag":null,"topics":["backend","boilerplate","mongodb","mongoose","nestjs","nodejs","template"],"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/BharatKalluri.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}},"created_at":"2020-12-14T09:56:13.000Z","updated_at":"2024-03-21T23:01:34.000Z","dependencies_parsed_at":"2022-08-15T05:20:10.526Z","dependency_job_id":null,"html_url":"https://github.com/BharatKalluri/nestjs-starter","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BharatKalluri%2Fnestjs-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BharatKalluri%2Fnestjs-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BharatKalluri%2Fnestjs-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BharatKalluri%2Fnestjs-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BharatKalluri","download_url":"https://codeload.github.com/BharatKalluri/nestjs-starter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243172144,"owners_count":20247887,"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":["backend","boilerplate","mongodb","mongoose","nestjs","nodejs","template"],"created_at":"2024-11-17T22:24:43.541Z","updated_at":"2025-12-26T00:22:03.590Z","avatar_url":"https://github.com/BharatKalluri.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp\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# An opinionated NestJS Typescript starter\n\n## Features\n\nEverything nest js gives out of the box (Hot Reloading, testing with `jest` etc), and\n\n- A starter `User` mongoose schema with a get/create an endpoint using firebase user data\n- JSON based config setup. Sample config at `config.json`\n- JSON based Logging setup using [`Pino`](https://www.npmjs.com/package/pino)\n- Per request UUID logging for easier traceability\n- Docker setup\n- Firebase auth setup! Along with decorators which can be used at endpoint levels.\n- Sample module setup (`health-check`) with unit testing on service, and a sample e2e test.\n- AWS SDK integration, sample s3 client as a starting point\n- Rate limiting (pre configured to limit each IP to 100 requests per 15 minutes) using `express-rate-limit`\n- OpenAPI/Swagger setup using `@nestjs/swagger`\n- Data validation using `class-validator`\n- Global exception handlers to capture `ServerError` with error codes and respond to client with corresponding error messages from `errorCodes.json`\n- Connected to MongoDB using `@nestjs/mongoose`, using URL from config.\n- Codebuild configuration setup (Uses `buildspec.yml` for build configuration and a env variable called `S3_BUCKET` for the bucket to retrieve `config.json` from. Go through the `buildspec.yml` for more information)\n- `Procfile` setup for elastic beanstalk to start the nestJS node process at port 8080\n- Pre commit hook which runs `tsc` and `prettier`\n\n## TODO\n\n- [ ] share local AWS config file with docker\n\n## Installation\n\n```bash\nyarn\n```\n\nto set up hooks\n\n```bash\nyarn setuphooks\n```\n\n## Running the app\n\n```bash\n# development\n$ yarn start\n\n# watch mode\n$ yarn start:dev\n\n# production mode\n$ yarn start:prod\n```\n\n## Running the app using docker\n\n```bash\ndocker build -t server . \u0026\u0026 docker run -p 127.0.0.1:8080:8080 server \n```\n\u003csmall\u003e`server` is just the image tag name, it could be anything\u003c/small\u003e\n\n## Verify if the server is up and running\n\n```bash\n~ ❯ curl http://localhost:3000/health-check\n{\"success\":true}\n```\n\n## Test\n\n```bash\n# unit tests\n$ yarn test\n\n# e2e tests\n$ yarn test:e2e\n\n# test coverage\n$ yarn test:cov\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbharatkalluri%2Fnestjs-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbharatkalluri%2Fnestjs-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbharatkalluri%2Fnestjs-starter/lists"}