{"id":19958109,"url":"https://github.com/talha4t/e-commerce","last_synced_at":"2026-04-11T03:06:44.626Z","repository":{"id":252951845,"uuid":"839744617","full_name":"talha4t/e-commerce","owner":"talha4t","description":"e-commerce backend api","archived":false,"fork":false,"pushed_at":"2024-09-20T08:45:09.000Z","size":1024,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-12T00:07:12.422Z","etag":null,"topics":["integration-testing","nestjs","nodejs","postgresql","prisma-orm","redis"],"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/talha4t.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":"2024-08-08T08:40:31.000Z","updated_at":"2024-09-20T08:45:13.000Z","dependencies_parsed_at":"2024-08-19T03:24:34.051Z","dependency_job_id":"fd06b971-c174-456b-82df-87c6e8865719","html_url":"https://github.com/talha4t/e-commerce","commit_stats":null,"previous_names":["talha4t/e-commerce"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/talha4t/e-commerce","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/talha4t%2Fe-commerce","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/talha4t%2Fe-commerce/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/talha4t%2Fe-commerce/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/talha4t%2Fe-commerce/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/talha4t","download_url":"https://codeload.github.com/talha4t/e-commerce/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/talha4t%2Fe-commerce/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31667074,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-10T17:19:37.612Z","status":"online","status_checked_at":"2026-04-11T02:00:05.776Z","response_time":54,"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":["integration-testing","nestjs","nodejs","postgresql","prisma-orm","redis"],"created_at":"2024-11-13T01:40:20.860Z","updated_at":"2026-04-11T03:06:44.597Z","avatar_url":"https://github.com/talha4t.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# E-Commerce Backend\n\nThis project is a robust e-commerce backend built with Node.js, NestJS, PostgreSQL, and Docker. It provides a scalable and efficient foundation for building modern e-commerce applications.\n\n## Table of Contents\n\n- [Prerequisites](#prerequisites)\n- [Getting Started](#getting-started)\n  - [Environment Setup](#environment-setup)\n  - [Installation](#installation)\n  - [Database Setup](#database-setup)\n- [Running the Application](#running-the-application)\n- [Testing](#testing)\n- [Docker](#docker)\n- [CI/CD](#cicd)\n- [API Documentation](#api-documentation)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Prerequisites\n\nBefore you begin, ensure you have the following installed:\n\n- Node.js (v22.x)\n- npm (comes with Node.js)\n- Docker and Docker Compose\n- PostgreSQL (if not using Docker)\n\n## Getting Started\n\n### Environment Setup\n\n1. Clone the repository:\n\n   ```\n   git clone https://github.com/talha4t/e-commerce.git\n   cd e-commerce-backend\n   ```\n\n2. Copy the example environment file and update it with your settings:\n\n   ```\n   cp .env.example .env\n   ```\n\n3. Update the `.env` file with your specific configuration:\n   - Set the `DATABASE_URL` to match your PostgreSQL setup\n   - Configure JWT secrets and expiry times\n   - Add Cloudinary credentials if using image uploads\n\n### Installation\n\nInstall the project dependencies:\n\n```\nnpm install\n```\n\n### Database Setup\n\nIf you're not using Docker, ensure your PostgreSQL server is running and the database is created. Then run the migrations:\n\n```\nnpm run migrate:dev\n```\n\n## Running the Application\n\nTo start the application in development mode:\n\n```\nnpm run start:dev\n```\n\nFor production:\n\n```\nnpm run build\nnpm run start:prod\n```\n\n## Testing\n\nRun the test suite:\n\n```\nnpm test\n```\n\nFor integration tests:\n\n```\nnpm run test:int\n```\n\n## Docker\n\nTo run the application using Docker:\n\n1. Start the PostgreSQL container:\n\n   ```\n   docker-compose up -d\n   ```\n\n2. Build and run the application:\n   ```\n   docker build -t e-commerce .\n   docker run -p 3000:3000 --env-file .env e-commerce\n   ```\n\n## CI/CD\n\nThis project uses GitHub Actions for continuous integration. The workflow is defined in `.github/workflows/nodejs.yml`. It runs on pushes to `master` and `dev` branches, and on pull requests to these branches.\n\nThe CI process includes:\n\n- Setting up Node.js and PostgreSQL\n- Installing dependencies\n- Building the project\n- Running Prisma migrations\n- (Commented out) Running integration tests\n\n## API Documentation\n\nAPI documentation is generated using Swagger. Once the application is running, you can access the Swagger UI at:\n\n```\nhttp://localhost:3000/api\n```\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n## License\n\nThis project is licensed under the [UNLICENSED] License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftalha4t%2Fe-commerce","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftalha4t%2Fe-commerce","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftalha4t%2Fe-commerce/lists"}