{"id":20189669,"url":"https://github.com/henriqueweiand/nestjs-ecommerce","last_synced_at":"2025-04-10T08:28:11.119Z","repository":{"id":224263188,"uuid":"762000065","full_name":"henriqueweiand/nestjs-ecommerce","owner":"henriqueweiand","description":"Example to exercise clean architecture with different databases + cache layer + DDD","archived":false,"fork":false,"pushed_at":"2024-03-20T21:56:23.000Z","size":486,"stargazers_count":33,"open_issues_count":0,"forks_count":10,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T08:07:42.878Z","etag":null,"topics":["cache","clean-architecture","ddd","e2e-tests","github-actions","jest","mongodb","mongoose","nestjs","postgresql","prisma","unit-testing"],"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/henriqueweiand.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":"2024-02-22T22:14:18.000Z","updated_at":"2025-03-02T06:20:04.000Z","dependencies_parsed_at":"2024-11-14T03:40:57.047Z","dependency_job_id":"f11b78a6-1f75-4ab3-8718-161e112922cc","html_url":"https://github.com/henriqueweiand/nestjs-ecommerce","commit_stats":null,"previous_names":["henriqueweiand/nestjs-ecommerce"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henriqueweiand%2Fnestjs-ecommerce","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henriqueweiand%2Fnestjs-ecommerce/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henriqueweiand%2Fnestjs-ecommerce/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henriqueweiand%2Fnestjs-ecommerce/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/henriqueweiand","download_url":"https://codeload.github.com/henriqueweiand/nestjs-ecommerce/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248184577,"owners_count":21061365,"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":["cache","clean-architecture","ddd","e2e-tests","github-actions","jest","mongodb","mongoose","nestjs","postgresql","prisma","unit-testing"],"created_at":"2024-11-14T03:38:26.278Z","updated_at":"2025-04-10T08:28:11.093Z","avatar_url":"https://github.com/henriqueweiand.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NestJS e-commerce\n\nExample to exercise clean architecture with different databases + cache layer + DDD.\n\n[![Run E2E Tests](https://github.com/henriqueweiand/nestjs-ecommerce/actions/workflows/run-e2e-tests.yml/badge.svg)](https://github.com/henriqueweiand/nestjs-ecommerce/actions/workflows/run-e2e-tests.yml)\n[![Run Unit Tests](https://github.com/henriqueweiand/nestjs-ecommerce/actions/workflows/run-unit-tests.yml/badge.svg)](https://github.com/henriqueweiand/nestjs-ecommerce/actions/workflows/run-unit-tests.yml)\n\nblog post about the project -\u003e https://medium.com/nestjs-ninja/mastering-nestjs-unleashing-the-power-of-clean-architecture-and-ddd-in-e-commerce-development-97850131fd87\n\n## Pre requirements\n\n- To use the full project, you will need to have a Stripe dev account;\n- Mongo or Postgres dabatase;\n\n## Running locally\n\n1. Instal the dependecies\n2. copy .env.example to .env'\n3. run `docker-compose up -d`, it will create a Mongo instance\n4. run `yarn start:dev`\n5. Access `http://localhost:3000/api`\n\nThe default database is set Mongo, but it can be changed inside `app.module.ts`\n\n## API Documentation\n\nRunning the solution, access `http://localhost:3000/api`\n\n![Preview](https://github.com/henriqueweiand/nestjs-ecommerce/blob/master/assets/swagger.png)\n\n## To-do\n\n- [x] Product\n- [x] User\n- [x] Order\n- [x] Add Mongo\n- [x] Add Postgres\n- [x] Add way to switch database easly\n- [x] Cache layer\n- [x] A few Unit tests\n- [x] A few e2e tests\n- [x] Stripe integration\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhenriqueweiand%2Fnestjs-ecommerce","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhenriqueweiand%2Fnestjs-ecommerce","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhenriqueweiand%2Fnestjs-ecommerce/lists"}