{"id":18962127,"url":"https://github.com/rene-kuhm/backend-ecommerce","last_synced_at":"2026-04-01T23:30:19.896Z","repository":{"id":240592666,"uuid":"803021383","full_name":"Rene-Kuhm/backend-ecommerce","owner":"Rene-Kuhm","description":null,"archived":false,"fork":false,"pushed_at":"2024-05-23T01:40:33.000Z","size":945,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-05-23T02:10:37.714Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/Rene-Kuhm.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-05-19T22:14:02.000Z","updated_at":"2024-05-29T03:52:55.252Z","dependencies_parsed_at":"2024-05-20T01:32:09.644Z","dependency_job_id":"1bed7db0-6f7f-4dcf-a311-517f64208f72","html_url":"https://github.com/Rene-Kuhm/backend-ecommerce","commit_stats":null,"previous_names":["rene-kuhm/backend-ecommerce"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rene-Kuhm%2Fbackend-ecommerce","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rene-Kuhm%2Fbackend-ecommerce/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rene-Kuhm%2Fbackend-ecommerce/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rene-Kuhm%2Fbackend-ecommerce/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Rene-Kuhm","download_url":"https://codeload.github.com/Rene-Kuhm/backend-ecommerce/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239958311,"owners_count":19724926,"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":[],"created_at":"2024-11-08T14:15:24.646Z","updated_at":"2026-04-01T23:30:19.809Z","avatar_url":"https://github.com/Rene-Kuhm.png","language":"TypeScript","funding_links":["https://opencollective.com/nest","https://paypal.me/kamilmysliwiec"],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"http://nestjs.com/\" target=\"blank\"\u003e\u003cimg src=\"https://nestjs.com/img/logo-small.svg\" width=\"200\" alt=\"Nest Logo\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n[circleci-image]: https://img.shields.io/circleci/build/github/nestjs/nest/master?token=abc123def456\n[circleci-url]: https://circleci.com/gh/nestjs/nest\n\n  \u003cp align=\"center\"\u003eA progressive \u003ca href=\"http://nodejs.org\" target=\"_blank\"\u003eNode.js\u003c/a\u003e framework for building efficient and scalable server-side applications.\u003c/p\u003e\n    \u003cp align=\"center\"\u003e\n\u003ca href=\"https://www.npmjs.com/~nestjscore\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/@nestjs/core.svg\" alt=\"NPM Version\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://www.npmjs.com/~nestjscore\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/npm/l/@nestjs/core.svg\" alt=\"Package License\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://www.npmjs.com/~nestjscore\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/npm/dm/@nestjs/common.svg\" alt=\"NPM Downloads\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://circleci.com/gh/nestjs/nest\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/circleci/build/github/nestjs/nest/master\" alt=\"CircleCI\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://coveralls.io/github/nestjs/nest?branch=master\" target=\"_blank\"\u003e\u003cimg src=\"https://coveralls.io/repos/github/nestjs/nest/badge.svg?branch=master#9\" alt=\"Coverage\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://discord.gg/G7Qnnhy\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/badge/discord-online-brightgreen.svg\" alt=\"Discord\"/\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/nest#backer\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/nest/backers/badge.svg\" alt=\"Backers on Open Collective\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/nest#sponsor\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/nest/sponsors/badge.svg\" alt=\"Sponsors on Open Collective\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://paypal.me/kamilmysliwiec\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/badge/Donate-PayPal-ff3f59.svg\"/\u003e\u003c/a\u003e\n    \u003ca href=\"https://opencollective.com/nest#sponsor\"  target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/badge/Support%20us-Open%20Collective-41B883.svg\" alt=\"Support us\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://twitter.com/nestframework\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/twitter/follow/nestframework.svg?style=social\u0026label=Follow\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n  \u003c!--[![Backers on Open Collective](https://opencollective.com/nest/backers/badge.svg)](https://opencollective.com/nest#backer)\n  [![Sponsors on Open Collective](https://opencollective.com/nest/sponsors/badge.svg)](https://opencollective.com/nest#sponsor)--\u003e\n\n## Description\n\n[Nest](https://github.com/nestjs/nest) framework TypeScript starter repository.\n\n## Installation\n\n```bash\n$ npm install\n```\n\n## Running 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\n## Test\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## Support\n\nNest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please [read more here](https://docs.nestjs.com/support).\n\n## Stay in touch\n\n- Author - [Kamil Myśliwiec](https://kamilmysliwiec.com)\n- Website - [https://nestjs.com](https://nestjs.com/)\n- Twitter - [@nestframework](https://twitter.com/nestframework)\n\n## License\n\nNest is [MIT licensed](LICENSE).\n\n\n## Comando para crear carpeta y archivos \n```bash\n# auth\nmkdir -p src/auth\ntouch src/auth/auth.controller.ts src/auth/auth.module.ts src/auth/auth.service.ts src/auth/jwt.strategy.ts src/auth/local.strategy.ts\n# users\nmkdir -p src/users\ntouch src/users/users.controller.ts src/users/users.module.ts src/users/users.service.ts src/users/user.entity.\n# products\nmkdir -p src/products\ntouch src/products/products.controller.ts src/products/products.module.ts src/products/products.service.ts src/products/product.entity.ts\n# orders\nmkdir -p src/orders\ntouch src/orders/orders.controller.ts src/orders/orders.module.ts src/orders/orders.service.ts src/orders/order.entity.ts\n# Crear directorios\nmkdir -p src/inventory src/payments src/cart src/notifications src/admin src/dto\n\n# Crear archivos para inventory\ntouch src/inventory/inventory.controller.ts src/inventory/inventory.module.ts src/inventory/inventory.service.ts src/inventory/inventory.entity.ts\n\n# Crear archivos para payments\ntouch src/payments/payments.controller.ts src/payments/payments.module.ts src/payments/payments.service.ts src/payments/payment.entity.ts\n\n# Crear archivos para cart\ntouch src/cart/cart.controller.ts src/cart/cart.module.ts src/cart/cart.service.ts src/cart/cart.entity.ts\n\n# Crear archivos para notifications\ntouch src/notifications/notifications.controller.ts src/notifications/notifications.module.ts src/notifications/notifications.service.ts\n\n# Crear archivos para admin\ntouch src/admin/admin.controller.ts src/admin/admin.module.ts src/admin/admin.service.ts\n\n# Crear archivos para dto\ntouch src/dto/create-inventory.dto.ts src/dto/update-inventory.dto.ts src/dto/create-payment.dto.ts src/dto/update-payment.dto.ts src/dto/create-cart.dto.ts src/dto/update-cart.dto.ts src/dto/create-notification.dto.ts src/dto/update-notification.dto.ts src/dto/create-admin.dto.ts src/dto/update-admin.dto.ts\n```\n\n# Backend Ecommerce API\n\nEsta es la documentación de la API para el proyecto Backend Ecommerce.\n\n## Endpoints\n\nAquí puedes encontrar ejemplos de comandos `curl` para probar los endpoints de la API.\n\n\u003cdetails\u003e\n  \u003csummary\u003eVer comandos de prueba\u003c/summary\u003e\n\n```bash\n#!/bin/bash\n\n# Crear Usuario de Prueba\necho \"Creando usuario de prueba...\"\ncurl -X POST http://localhost:3000/users -H \"Content-Type: application/json\" -d '{\"username\":\"testuser\",\"email\":\"test@example.com\",\"password\":\"password\", \"role\": \"user\"}'\necho -e \"\\n\"\n\n# Crear Producto de Prueba\necho \"Creando producto de prueba...\"\ncurl -X POST http://localhost:3000/products -H \"Content-Type: application/json\" -d '{\"name\":\"Product 1\",\"description\":\"Description of Product 1\",\"price\":100.0,\"stock\":50}'\necho -e \"\\n\"\n\n# Crear Inventario\necho \"Creando inventario...\"\ncurl -X POST http://localhost:3000/inventories -H \"Content-Type: application/json\" -d '{\"name\":\"Main Inventory\",\"items\":[{\"productId\":1,\"quantity\":10,\"price\":100.0}]}'\necho -e \"\\n\"\n\n# Obtener Todos los Inventarios\necho \"Obteniendo todos los inventarios...\"\ncurl http://localhost:3000/inventories\necho -e \"\\n\"\n\n# Obtener un Inventario por ID\necho \"Obteniendo inventario con ID 1...\"\ncurl http://localhost:3000/inventories/1\necho -e \"\\n\"\n\n# Actualizar un Inventario\necho \"Actualizando inventario con ID 1...\"\ncurl -X PATCH http://localhost:3000/inventories/1 -H \"Content-Type: application/json\" -d '{\"name\":\"Updated Inventory\",\"items\":[{\"productId\":1,\"quantity\":20,\"price\":150.0}]}'\necho -e \"\\n\"\n\n# Eliminar un Inventario\necho \"Eliminando inventario con ID 1...\"\ncurl -X DELETE http://localhost:3000/inventories/1\necho -e \"\\n\"\n\n# Crear Notificación\necho \"Creando notificación...\"\ncurl -X POST http://localhost:3000/notifications -H \"Content-Type: application/json\" -d '{\"userId\":1,\"message\":\"Your order has been shipped\"}'\necho -e \"\\n\"\n\n# Obtener Todas las Notificaciones\necho \"Obteniendo todas las notificaciones...\"\ncurl http://localhost:3000/notifications\necho -e \"\\n\"\n\n# Obtener una Notificación por ID\necho \"Obteniendo notificación con ID 1...\"\ncurl http://localhost:3000/notifications/1\necho -e \"\\n\"\n\n# Actualizar una Notificación\necho \"Actualizando notificación con ID 1...\"\ncurl -X PATCH http://localhost:3000/notifications/1 -H \"Content-Type: application/json\" -d '{\"message\":\"Your order has been delivered\"}'\necho -e \"\\n\"\n\n# Eliminar una Notificación\necho \"Eliminando notificación con ID 1...\"\ncurl -X DELETE http://localhost:3000/notifications/1\necho -e \"\\n\"\n\n# Crear una Orden\necho \"Creando una orden...\"\ncurl -X POST http://localhost:3000/orders -H \"Content-Type: application/json\" -d '{\"userId\":1,\"items\":[{\"productId\":1,\"quantity\":2,\"price\":100.0}]}'\necho -e \"\\n\"\n\n# Obtener Todas las Órdenes\necho \"Obteniendo todas las órdenes...\"\ncurl http://localhost:3000/orders\necho -e \"\\n\"\n\n# Obtener una Orden por ID\necho \"Obteniendo orden con ID 1...\"\ncurl http://localhost:3000/orders/1\necho -e \"\\n\"\n\n# Actualizar una Orden\necho \"Actualizando orden con ID 1...\"\ncurl -X PATCH http://localhost:3000/orders/1 -H \"Content-Type: application/json\" -d '{\"userId\":1,\"items\":[{\"productId\":1,\"quantity\":3,\"price\":100.0}]}'\necho -e \"\\n\"\n\n# Eliminar una Orden\necho \"Eliminando orden con ID 1...\"\ncurl -X DELETE http://localhost:3000/orders/1\necho -e \"\\n\"\n\n# Finalizado\necho \"Pruebas completadas.\"\n\u003c/details\u003e\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frene-kuhm%2Fbackend-ecommerce","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frene-kuhm%2Fbackend-ecommerce","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frene-kuhm%2Fbackend-ecommerce/lists"}