{"id":14957552,"url":"https://github.com/hantsy/nestjs-rest-sample","last_synced_at":"2025-05-15T20:03:11.807Z","repository":{"id":37624100,"uuid":"269639312","full_name":"hantsy/nestjs-rest-sample","owner":"hantsy","description":"NestJS RESTful APIs Sample","archived":false,"fork":false,"pushed_at":"2025-05-12T14:20:16.000Z","size":9558,"stargazers_count":453,"open_issues_count":1,"forks_count":106,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-05-12T15:34:55.351Z","etag":null,"topics":["expressjs","jest","mongoose","nestjs","nestjs-mongoose","restful-api","rxjs","typescript"],"latest_commit_sha":null,"homepage":"https://hantsy.github.io/nestjs-rest-sample/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hantsy.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,"zenodo":null}},"created_at":"2020-06-05T13:09:20.000Z","updated_at":"2025-05-12T14:20:13.000Z","dependencies_parsed_at":"2024-06-24T16:16:37.396Z","dependency_job_id":"a526d462-40cc-4e2d-97a7-8bab0acba8bf","html_url":"https://github.com/hantsy/nestjs-rest-sample","commit_stats":{"total_commits":1908,"total_committers":3,"mean_commits":636.0,"dds":"0.061320754716981174","last_synced_commit":"313ca6f8a3b1f3d3db9f24d3f12cf879bdae95a2"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hantsy%2Fnestjs-rest-sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hantsy%2Fnestjs-rest-sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hantsy%2Fnestjs-rest-sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hantsy%2Fnestjs-rest-sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hantsy","download_url":"https://codeload.github.com/hantsy/nestjs-rest-sample/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254414493,"owners_count":22067271,"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":["expressjs","jest","mongoose","nestjs","nestjs-mongoose","restful-api","rxjs","typescript"],"created_at":"2024-09-24T13:15:08.214Z","updated_at":"2025-05-15T20:03:10.280Z","avatar_url":"https://github.com/hantsy.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NestJS Sample\n\n![Compile and build](https://github.com/hantsy/nestjs-sample/actions/workflows/build.yml/badge.svg)\n![Build Docker Image](https://github.com/hantsy/nestjs-sample/workflows/Dockerize/badge.svg)\n![Run e2e testing](https://github.com/hantsy/nestjs-sample/workflows/e2e/badge.svg)\n[![codecov](https://codecov.io/gh/hantsy/nestjs-rest-sample/branch/master/graph/badge.svg?token=MBLWAJPG13)](https://codecov.io/gh/hantsy/nestjs-rest-sample)\n\nA NestJS RESTful APIs sample project, including:\n\n* Restful APIs satisfies Richardson Maturity Model(Level 2)\n* Custom Mongoose integration module instead of @nestjs/mongoose\n* Passport/Jwt authentication with simple text secrets\n* Fully testing codes with Jest, jest-mock-extended, ts-mockito, @golevelup/ts-jest etc.\n* Github actions workflow for continuous testing, code coverage report, docker image building, etc.\n\n## Docs\n\n* [Getting Started](./docs/guide.md)\n* [Connecting to MongoDB](./docs/mongo.md)\n* [Protect your APIs with JWT Token](./docs/auth.md)\n* [Dealing with model relations](./docs/model.md)\n* [Externalizing the configuration](./docs/config.md)\n* [Handling user registration](./docs/user.md)\n* [Testing Nestjs applications](./docs/testing.md)\n\n## Build\n\nInstall the dependencies.\n\n```bash\n$ npm install\n```\n\nRunning the app\n\n```bash\n# development\n$ npm run start\n\n# watch mode\n$ npm run start:dev\n\n# production mode\n$ npm run start:prod\n```\n\nTest\n\n```bash\n# unit tests\n$ npm run test\n\n# e2e tests\n$ npm run test:e2e\n\n# test coverage\n$ npm run test:cov\n```\n\n\n## Reference\n\n* [The official Nestjs documentation](https://docs.nestjs.com/first-steps)\n* [Unit testing NestJS applications with Jest](https://blog.logrocket.com/unit-testing-nestjs-applications-with-jest/)\n* [ts-mockito: Mocking library for TypeScript inspired by http://mockito.org/](https://github.com/NagRock/ts-mockito)\n* [Clock-in/out System Series](https://carloscaballero.io/part-2-clock-in-out-system-basic-backend/)\n* [Modern Full-Stack Development with Nest.js, React, TypeScript, and MongoDB: Part 1](https://auth0.com/blog/modern-full-stack-development-with-nestjs-react-typescript-and-mongodb-part-1/), [Part 2](https://auth0.com/blog/modern-full-stack-development-with-nestjs-react-typescript-and-mongodb-part-2/)\n* [Code with Hugo - Jest Full and Partial Mock/Spy of CommonJS and ES6 Module Imports](https://codewithhugo.com/jest-mock-spy-module-import/)\n* There is a collection of courses from [https://wanago.io/](https://wanago.io/) which is very helpful for building applications with NestJS:\n  * [API with NestJS](https://wanago.io/courses/api-with-nestjs/)\n  * [Series: TypeScript Express tutorial](https://wanago.io/courses/typescript-express-tutorial/)\n  * [Series: Node.js TypeScript](https://wanago.io/courses/node-js-typescript/)\n  * [Series: JavaScript testing tutorial](https://wanago.io/courses/javascript-testing-tutorial/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhantsy%2Fnestjs-rest-sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhantsy%2Fnestjs-rest-sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhantsy%2Fnestjs-rest-sample/lists"}