{"id":20625835,"url":"https://github.com/jmorbegoso/wish-list-api","last_synced_at":"2025-04-15T15:11:51.918Z","repository":{"id":44919437,"uuid":"421192556","full_name":"JMOrbegoso/wish-list-api","owner":"JMOrbegoso","description":"Backend API built with NestJS using Domain-Driven Design and Clean Architecture.","archived":false,"fork":false,"pushed_at":"2025-01-26T17:08:08.000Z","size":1331,"stargazers_count":10,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-28T21:42:02.757Z","etag":null,"topics":["access-token","authentication","clean-architecture","ddd","docker","jest","mikroorm","mongodb","nestjs","refresh-token","repository-pattern","swagger","unit-of-work-pattern"],"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/JMOrbegoso.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":"2021-10-25T21:39:59.000Z","updated_at":"2025-01-26T17:08:13.000Z","dependencies_parsed_at":"2022-09-03T21:31:56.675Z","dependency_job_id":null,"html_url":"https://github.com/JMOrbegoso/wish-list-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JMOrbegoso%2Fwish-list-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JMOrbegoso%2Fwish-list-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JMOrbegoso%2Fwish-list-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JMOrbegoso%2Fwish-list-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JMOrbegoso","download_url":"https://codeload.github.com/JMOrbegoso/wish-list-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249094932,"owners_count":21211837,"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":["access-token","authentication","clean-architecture","ddd","docker","jest","mikroorm","mongodb","nestjs","refresh-token","repository-pattern","swagger","unit-of-work-pattern"],"created_at":"2024-11-16T13:11:11.303Z","updated_at":"2025-04-15T15:11:51.905Z","avatar_url":"https://github.com/JMOrbegoso.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eWish List API 🌟\u003c/h1\u003e\n\u003ch2 align=\"center\"\u003eBackend REST API built with NestJS and following the principles of Domain-Driven Design and Clean Architecture\u003c/h2\u003e\n\n\u003cbr/\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/TypeScript-informational?style=flat\u0026logo=typescript\u0026logoColor=white\" alt=\"TypeScript badge\"/\u003e\n    \u003cimg src=\"https://img.shields.io/badge/NestJS-404D59?style=flat\u0026logo=nestjs\u0026color=CB3837\" alt=\"NestJS badge\"/\u003e\n    \u003cimg src=\"https://img.shields.io/badge/MongoDB-4EA94B?style=flat\u0026logo=mongodb\u0026logoColor=white\" alt=\"MongoDB badge\"/\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Yarn-informational?style=flat\u0026logo=Yarn\u0026color=2C8EBB\u0026logoColor=white\" alt=\"Yarn badge\"/\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Jest-informational?style=flat\u0026logo=Jest\u0026color=2C8EBB\u0026logoColor=white\" alt=\"Jest badge\"/\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Docker-informational?style=flat\u0026logo=docker\u0026logoColor=white\" alt=\"Docker badge\"/\u003e\n\u003c/p\u003e\n\nWish List API is a backend REST API where you can publish your wishes, share them, and keep them on track, recording the progress you make, until you fulfill them.\n\n## ✨ Features\n\n- Built with TypeScript.\n- Domain-Driven Design (DDD):\n  - Value Objects.\n  - Entities.\n  - Aggregates.\n- Clean Architecture:\n  - Domain Layer.\n  - Application Layer.\n  - Infrastructure Layer.\n- Design Patterns:\n  - [Repository Pattern](https://blog.jmorbegoso.com/post/repository-pattern/).\n  - [Unit of Work](https://blog.jmorbegoso.com/post/unit-of-work-pattern/).\n  - [Static Factory Method Pattern](https://blog.jmorbegoso.com/post/static-factory-method-pattern/).\n- Command Query Responsibility Segregation (CQRS).\n- 📺 Presentation:\n  - NestJS.\n- 📚 Persistence:\n  - MikroORM.\n  - MongoDB.\n- 👤 Authentication:\n  - [Passport.js](http://www.passportjs.org/).\n  - JWT Access Tokens.\n  - Refresh Tokens.\n  - Refresh Tokens rotation.\n  - Refresh Tokens auto-revocation.\n- 🛡️ Authorization:\n  - User Roles.\n  - Resource Ownership.\n- 🧪 Testing:\n  - Jest.\n  - Supertest (e2e).\n  - Coverage Report: 70%.\n- 📝 Documentation:\n  - [Swagger for NestJS](https://github.com/nestjs/swagger/).\n\n## ⌚ Prerequisites\n\nTo run this Backend API make sure you have installed all of the following prerequisites on your machine:\n\n- Node.js.\n- TypeScript.\n- Yarn.\n- Docker.\n\n## 💻 Install\n\n```bash\n# Environment Variables\ncp '.env.example' '.env' # Development\ncp '.env.example' '.test.env' # Tests\n\n# Install dependencies\nyarn\n\n# Run MongoDB database in Docker 🐋\ndocker-compose up # Development\ndocker-compose -f docker-compose.e2e.yml --env-file ./.test.env up # Tests\n```\n\n## 🚀 Running\n\n```bash\n# Run in development mode\nyarn start\n\n# Run in watch mode (development)\nyarn start:dev\n\n# Run in production mode\nyarn start:prod\n```\n\n## 🧪 Tests\n\n```bash\n# Run tests\nyarn test\n\n# Run test coverage\nyarn test:cov\n\n# Run tests end to end\nyarn test:e2e\n```\n\n## 🧑‍💻 Author\n\n**JMOrbegoso**\n\n- Website: [www.jmorbegoso.dev](https://www.jmorbegoso.dev)\n- Blog: [blog.jmorbegoso.dev](https://blog.jmorbegoso.dev)\n- Github: [@JMOrbegoso](https://github.com/JMOrbegoso/)\n- LinkedIn: [@jmorbegosodev](https://www.linkedin.com/in/jmorbegosodev/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmorbegoso%2Fwish-list-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjmorbegoso%2Fwish-list-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmorbegoso%2Fwish-list-api/lists"}