{"id":22965137,"url":"https://github.com/ggturan/sporting-goods-server","last_synced_at":"2026-04-07T18:32:37.366Z","repository":{"id":247573582,"uuid":"825850015","full_name":"GGTuran/sporting-goods-server","owner":"GGTuran","description":"This backend server is designed to support an e-commerce platform specializing in selling sports goods. It provides robust features to ensure a seamless and secure shopping experience for customers and effective management capabilities for administrators","archived":false,"fork":false,"pushed_at":"2024-07-13T02:28:33.000Z","size":66,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-02T04:27:31.978Z","etag":null,"topics":["cors","eslint-prettier","expressjs","mongoose","nodejs","nodemon","typescript","zod"],"latest_commit_sha":null,"homepage":"https://home-of-sports-server.vercel.app/","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/GGTuran.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-07-08T16:10:20.000Z","updated_at":"2024-09-14T15:09:21.000Z","dependencies_parsed_at":"2025-04-02T04:37:17.331Z","dependency_job_id":null,"html_url":"https://github.com/GGTuran/sporting-goods-server","commit_stats":null,"previous_names":["ggturan/sporting-goods-server"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/GGTuran/sporting-goods-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GGTuran%2Fsporting-goods-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GGTuran%2Fsporting-goods-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GGTuran%2Fsporting-goods-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GGTuran%2Fsporting-goods-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GGTuran","download_url":"https://codeload.github.com/GGTuran/sporting-goods-server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GGTuran%2Fsporting-goods-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31524525,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T16:28:08.000Z","status":"ssl_error","status_checked_at":"2026-04-07T16:28:06.951Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cors","eslint-prettier","expressjs","mongoose","nodejs","nodemon","typescript","zod"],"created_at":"2024-12-14T20:13:40.600Z","updated_at":"2026-04-07T18:32:37.345Z","avatar_url":"https://github.com/GGTuran.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n---\n\n# Home Of Sports Backend\n\n\n\n[Live Link](https://home-of-sports-server.vercel.app/)\n\n## Introduction\nThis backend server is designed to support an e-commerce platform specializing in selling sports goods. It provides robust features to ensure a seamless and secure shopping experience for customers and effective management capabilities for administrators. This system is particularly beneficial for sports enthusiasts and professionals looking for a variety of sporting goods.\n\n## Project Description\n\nThis project involves the development of a robust backend server for an e-commerce platform that specializes in selling sporting goods. The server is designed to manage  product inventory, orders, payments, and other essential functionalities. It aims to create a seamless and secure online shopping experience for customers while providing powerful management tools for administrators.\n\n## Features\n\n- An user can create,update and delete a product from database\n- Allows user to filter,sort,search specific products\n\n- Allows an user to order one product or multiple product at a time\n\n## Technology Stack\n\n- Programming Language: TypeScript\n- Web Framework: Express.js\n- Database: MongoDB(Mongoose for ODM)\n- Validation Library: Zod\n- Deployment : Vercel\n\n\n\n### Prerequisites\n\n- Node.js (v14 or higher)\n- MongoDB\n\n### Installation Steps\n\n**Follow this simple step to clone the project:**\n\n```bash\ngit clone  https://github.com/GGTuran/sporting-goods-server\n```\n\n**Now install the dependencies of the project:**\n\n```bash\nnpm install\n```\n\n**You can compile typescript**\n\n```\nnpm run build\n```\n\n## Start the server\n\n**You can run the server in development mode**\n\n```\nnpm run start:dev\n```\n\n**Or you can start the server by running the js files which is recommended**\n\n```\nnpm run start:prod\n```\n\n### Configuration\n\n1. Create a `.env` file in the root directory of the project.\n2. Add necessary configuration variables in the `.env` file.\n   Example:\n\n\n   ```bash\n    PORT=%000\n    DATABASE_URL=your_own_mongodb_uri\n   \n   ```\n\n ## file structure in modules\n\n```bash\nmodules\n├── product\n│   ├── product.controller.ts\n│   ├── product.model.ts\n│   ├── product.route.ts\n│   └── product.validation.ts\n│   └── product.service.ts\n│   └── product.constants.ts\n├── order\n│   ├── order.controller.ts\n│   ├── order.interface.ts\n│   ├── order.model.ts\n│   └── order.validation.ts\n│   ├── order.route.ts\n│   └── order.service.ts\n\n```\n\n\n## Product Routes\n\n### Create Product\n\n- **Method**: `POST`\n- **Route**: `/api/products`\n- **Description**: Add a new product to the system \n\n### Get All Products\n\n- **Method**: `GET`\n- **Route**: `/api/products`\n- **Description**: Retrieve a list of all available products.\n### Get SIngle Products\n\n- **Method**: `GET`\n- **Route**: `/api/products/:id`\n- **Description**: Retrieve a single product.\n\n### Update Product\n\n- **Method**: `PATCH`\n- **Route**: `/api/products/:id`\n- **Description**: Update the details of a specific product \n\n### Delete Product\n\n- **Method**: `DELETE`\n- **Route**: `/api/products/:id`\n- **Description**: Remove a specific product from the system \n\n\n## Order Routes\n\n### Create Order\n\n- **Method**: `POST`\n- **Route**: `/api/orders`\n- **Description**: Create a new order for a product.\n\n## Error Handling\n\nThe API uses standard HTTP status codes to indicate the success or failure of an API request. Common status codes include:\n\n- `200 OK`: The request was successful.\n- `201 Created`: The resource was successfully created.\n- `400 Bad Request`: The request could not be understood or was missing required parameters.\n- `401 Unauthorized`: Authentication failed or user does not have permissions for the requested operation.\n- `403 Forbidden`: Authentication succeeded but authenticated user does not have access to the requested resource.\n- `404 Not Found`: The requested resource could not be found.\n- `500 Internal Server Error`: An error occurred on the server..","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fggturan%2Fsporting-goods-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fggturan%2Fsporting-goods-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fggturan%2Fsporting-goods-server/lists"}