{"id":22211334,"url":"https://github.com/danielshow/inventory_system","last_synced_at":"2026-04-30T17:31:55.764Z","repository":{"id":44309114,"uuid":"238239083","full_name":"Danielshow/Inventory_system","owner":"Danielshow","description":null,"archived":false,"fork":false,"pushed_at":"2023-02-28T20:38:33.000Z","size":630,"stargazers_count":1,"open_issues_count":19,"forks_count":0,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2025-03-25T05:42:09.439Z","etag":null,"topics":["api","javascript","nodejs"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/Danielshow.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":"2020-02-04T15:30:12.000Z","updated_at":"2022-12-16T21:51:20.000Z","dependencies_parsed_at":"2024-12-02T20:34:59.410Z","dependency_job_id":null,"html_url":"https://github.com/Danielshow/Inventory_system","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"Danielshow/node_babel","purl":"pkg:github/Danielshow/Inventory_system","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Danielshow%2FInventory_system","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Danielshow%2FInventory_system/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Danielshow%2FInventory_system/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Danielshow%2FInventory_system/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Danielshow","download_url":"https://codeload.github.com/Danielshow/Inventory_system/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Danielshow%2FInventory_system/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32472396,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"ssl_error","status_checked_at":"2026-04-30T13:12:06.837Z","response_time":57,"last_error":"SSL_read: 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":["api","javascript","nodejs"],"created_at":"2024-12-02T20:22:58.458Z","updated_at":"2026-04-30T17:31:55.744Z","avatar_url":"https://github.com/Danielshow.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Inventory System\nBuild a Simple Inventory Management System API\n\n# Requirement\n\nUsing the CRUD HTTP API over a local MongoDB instance as your database back-end, build a logging API for supermarket purchase receipts that has the following functionality:\n\n## Prerequisites\n1. [Node js](https://nodejs.org/en/)\n2. [Postman](https://www.getpostman.com/) To test the endpoints\n3. Any text Editor\n4. [Git](https://git-scm.com/downloads)\n4. Local MongoDB instance\n\n## Installing\n\nClone this project\n\n```shell\nnpm install\nnpm start\n```\nmake your environment variable `.env file`\nFill in this data for mongodb\n```\nserver=\ndatabase=\n```\n\n## Test\n```shell\nNo test for now\n```\n\n## Features\n- Ability to log purchase receipts\n- Ability to query DB for total sales in a given month\n- Ability to query DB for complete product list\n- Ability to add/modify/delete products\n- Ability to query DB for monthly sales by product\n\n## API Routes\n\n| HTTP verb | Routes  | Description |\n|-----------| ------------- | ------------- |\n| GET | /api/v1/products | Get all products |\n| POST | /api/v1/products/add | add a product - params [name, amount]|\n| DELETE | /api/v1/products/:id | Delete a specific product by id |\n| PUT | /api/v1/products/:id | Update a particular product [name, amount] |\n| POST | /api/v1/purchase/:id  | Purchase a product and get receipt [quantity]  |\n| GET | /api/v1/total  | Get total sale in a month [takes a query params month] |\n| GET | /api/v1/month  | get monthly sale by product [takes a query param product]|\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielshow%2Finventory_system","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanielshow%2Finventory_system","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielshow%2Finventory_system/lists"}