{"id":22026605,"url":"https://github.com/harshit98/ecommerce-product-catalog","last_synced_at":"2025-05-07T10:15:50.164Z","repository":{"id":44025683,"uuid":"227946521","full_name":"harshit98/ECommerce-Product-Catalog","owner":"harshit98","description":"CRUD based API to edit product catalog for an e-commerce company.","archived":false,"fork":false,"pushed_at":"2023-02-28T18:45:16.000Z","size":905,"stargazers_count":5,"open_issues_count":14,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-07T10:15:34.558Z","etag":null,"topics":["ecommerce-application","hacktoberfest","javascript","mongodb"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/harshit98.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2019-12-14T00:55:15.000Z","updated_at":"2025-04-01T10:34:01.000Z","dependencies_parsed_at":"2024-11-30T09:16:32.111Z","dependency_job_id":null,"html_url":"https://github.com/harshit98/ECommerce-Product-Catalog","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harshit98%2FECommerce-Product-Catalog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harshit98%2FECommerce-Product-Catalog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harshit98%2FECommerce-Product-Catalog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harshit98%2FECommerce-Product-Catalog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/harshit98","download_url":"https://codeload.github.com/harshit98/ECommerce-Product-Catalog/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252856560,"owners_count":21814858,"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":["ecommerce-application","hacktoberfest","javascript","mongodb"],"created_at":"2024-11-30T07:28:34.310Z","updated_at":"2025-05-07T10:15:50.136Z","avatar_url":"https://github.com/harshit98.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ECommerce Product Catalog\n\nCRUD based API to edit product catalog for an e-commerce company.\n\n## Database Schema\n\nProduct Details - Name, Category, Brand, Image.\n\n```\nvar ProductSchema = new mongoose.Schema({\n    name: {\n        type: String\n    },\n    category: {\n        type: String\n    },\n    brand: {\n        type: String\n    },\n    img: {\n        name: String,\n        data: Buffer,\n        contentType: String\n    },\n    created: {\n        type: Date,\n        default: Date.now\n    }\n});\n```\n\n## Features\n\n1. API supports CRUD database operations.\n2. Filter based search in database.\n3. Unit tests for testing API endpoints.\n4. Proper URL routing.\n5. Functionality to store product image in database.\n6. Functionality to fetch product image from database.\n\n## Tech Stack\n\n- MongoDB.\n- ExpressJS.\n- Jest.\n\n## Local Deployment\n\nCreate a `uploads` folder inside `/ECommerce-Product-Catalog`. This folder will help to keep a track of uploaded product image. Make sure your MongoDB is installed and running in background.\n\nRun server: `nodemon server.js`\n\nAfter running server, redirect to `http://localhost:3000/product`\n\n### Database Configuration\n\n- Database name - `ProductDB`\n- Collections - `products`\n\n### Run Tests\n\nTo run tests use `npm test`\n\nWe're using `jest` for unit tests.\n\n## Project Demo Link\n\nVideo of working project: https://youtu.be/5HZrdHXCWrY\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharshit98%2Fecommerce-product-catalog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fharshit98%2Fecommerce-product-catalog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharshit98%2Fecommerce-product-catalog/lists"}