{"id":31675064,"url":"https://github.com/aya8merai/th-nestjs-e-commerce-api","last_synced_at":"2026-05-03T01:38:05.602Z","repository":{"id":314199338,"uuid":"1054554550","full_name":"aya8merai/TH-NestJS-E-Commerce-API","owner":"aya8merai","description":"A NestJS e-commerce backend API built with TypeScript and PostgreSQL, developed as a training project for the TECH HUB Full Stack Bootcamp.","archived":false,"fork":false,"pushed_at":"2025-09-11T02:45:33.000Z","size":103,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-11T06:03:11.721Z","etag":null,"topics":["api","backend-api","database","e-commerce-project","nestjs","postgresql"],"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/aya8merai.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-11T02:32:10.000Z","updated_at":"2025-09-11T02:53:45.000Z","dependencies_parsed_at":"2025-09-11T06:03:19.379Z","dependency_job_id":"e306a9ee-5611-4c6e-93a2-faf4fa41183f","html_url":"https://github.com/aya8merai/TH-NestJS-E-Commerce-API","commit_stats":null,"previous_names":["aya8merai/th-nestjs-e-commerce-api"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/aya8merai/TH-NestJS-E-Commerce-API","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aya8merai%2FTH-NestJS-E-Commerce-API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aya8merai%2FTH-NestJS-E-Commerce-API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aya8merai%2FTH-NestJS-E-Commerce-API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aya8merai%2FTH-NestJS-E-Commerce-API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aya8merai","download_url":"https://codeload.github.com/aya8merai/TH-NestJS-E-Commerce-API/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aya8merai%2FTH-NestJS-E-Commerce-API/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278891741,"owners_count":26063856,"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","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["api","backend-api","database","e-commerce-project","nestjs","postgresql"],"created_at":"2025-10-08T04:59:38.444Z","updated_at":"2025-10-08T04:59:39.495Z","avatar_url":"https://github.com/aya8merai.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=\"120\" 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://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\" alt=\"Donate us\"/\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\" alt=\"Follow us on Twitter\"\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# NestJS E-commerce API\n\n## Description\n\nA scalable e-commerce backend API built with NestJS, TypeScript, and PostgreSQL. This project provides essential e-commerce functionality with role-based user management and product categorization.\n\n## Features\n\n- User Management with Role-Based Access Control (SUPER_ADMIN, ADMIN, CUSTOMER)\n- Category Management\n- Data Validation using class-validator\n- PostgreSQL Integration with TypeORM\n- Password Hashing with bcrypt\n- Pagination Support\n- Error Handling with Custom Exceptions\n\n## Prerequisites\n\n- Node.js\n- PostgreSQL\n- npm\n\n## Project Setup\n\n```bash\n$ npm install\n```\n\n## Database Configuration\n\nUpdate database credentials in `src/app.module.ts`:\n\n```typescript\nTypeOrmModule.forRoot({\n  type: 'postgres',\n  host: 'localhost',\n  port: 5432,\n  username: 'your_username',\n  password: 'your_password',\n  database: 'your_database',\n  autoLoadEntities: true,\n  synchronize: true,\n})\n```\n\n## Running the Project\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## API Endpoints\n\n### Users\n- `POST /users` - Create user\n- `GET /users` - Get all users (DESC order with pagination)\n- `GET /users/:id` - Get one user\n- `PUT /users/:id` - Update user's info\n- `DELETE /users/:id` - Delete user\n\n### Categories\n- `POST /categories` - Create category\n- `GET /categories` - Get all categories (ASC order with pagination)\n- `GET /categories/:id` - Get one category\n- `PUT /categories/:id` - Update category's info\n- `DELETE /categories/:id` - Delete category","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faya8merai%2Fth-nestjs-e-commerce-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faya8merai%2Fth-nestjs-e-commerce-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faya8merai%2Fth-nestjs-e-commerce-api/lists"}