{"id":24665873,"url":"https://github.com/rafaelmoraes003/store-manager","last_synced_at":"2026-04-15T19:34:15.289Z","repository":{"id":132548312,"uuid":"525559623","full_name":"rafaelmoraes003/store-manager","owner":"rafaelmoraes003","description":"Sales management system in dropshipping format.","archived":false,"fork":false,"pushed_at":"2022-12-18T05:14:11.000Z","size":267,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-21T10:52:46.738Z","etag":null,"topics":["chai","express","http","javascript","mocha","mysql","node","nodejs","sinon"],"latest_commit_sha":null,"homepage":"","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/rafaelmoraes003.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":"2022-08-16T22:23:45.000Z","updated_at":"2023-11-14T14:16:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"43c61dcb-3514-4203-9f9c-c4b32fdd3c11","html_url":"https://github.com/rafaelmoraes003/store-manager","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rafaelmoraes003/store-manager","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafaelmoraes003%2Fstore-manager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafaelmoraes003%2Fstore-manager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafaelmoraes003%2Fstore-manager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafaelmoraes003%2Fstore-manager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rafaelmoraes003","download_url":"https://codeload.github.com/rafaelmoraes003/store-manager/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafaelmoraes003%2Fstore-manager/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31857272,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"ssl_error","status_checked_at":"2026-04-15T15:24:39.138Z","response_time":63,"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":["chai","express","http","javascript","mocha","mysql","node","nodejs","sinon"],"created_at":"2025-01-26T07:13:58.178Z","updated_at":"2026-04-15T19:34:15.278Z","avatar_url":"https://github.com/rafaelmoraes003.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"left\"\u003eStore Manager\u003c/h1\u003e\n\n###\n\n\u003cp align=\"left\"\u003eThis project aimed to develop a fully RESTful API using the MSC (model-service-controller) architecture.\u003cbr\u003e\u003cbr\u003eThe API built was a sales management system in dropshipping format in which it is possible to create, view, delete and update products and sales.\u003cbr\u003e\u003cbr\u003eFor the construction of the API, Node.js was used with Express and a MySQL database for data management. In the testing part, 100% code coverage was done using Mocha, Chai and Sinon.\u003c/p\u003e\n\n###\n\n\u003ch2 align=\"left\"\u003eTechnologies used\u003c/h2\u003e\n\n###\n\n\u003cdiv align=\"left\"\u003e\n  \u003cimg src=\"https://cdn.jsdelivr.net/gh/devicons/devicon/icons/javascript/javascript-original.svg\" height=\"50\" width=\"62\" alt=\"javascript logo\"  /\u003e\n  \u003cimg src=\"https://cdn.jsdelivr.net/gh/devicons/devicon/icons/nodejs/nodejs-original.svg\" height=\"50\" width=\"62\" alt=\"nodejs logo\"  /\u003e\n  \u003cimg src=\"https://cdn.jsdelivr.net/gh/devicons/devicon/icons/express/express-original.svg\" height=\"50\" width=\"62\" alt=\"express logo\"  /\u003e\n  \u003cimg src=\"https://cdn.jsdelivr.net/gh/devicons/devicon/icons/mysql/mysql-original.svg\" height=\"50\" width=\"62\" alt=\"mysql logo\"  /\u003e\n  \u003cimg src=\"https://cdn.jsdelivr.net/gh/devicons/devicon/icons/mocha/mocha-plain.svg\" height=\"50\" width=\"62\" alt=\"mocha logo\"  /\u003e\n\u003c/div\u003e\n\n###\n\n\u003ch2 align=\"left\"\u003eHow to use the application\u003c/h2\u003e\n\n###\n\nClone the application using the `git clone` command. After that, enter the project folder using the `cd store-manager` command and run the `npm install` command. After installation, use the `npm start` command and enter port `3000` in your browser.\n\n###\n\n\u003ch2 align=\"left\"\u003eAbout the database\u003c/h2\u003e\n\n###\n- Create the databse\n\n`npm run migration`\n\n- Populate the database\n\n`npm run seed`\n\n###\n\n\u003ch2 align=\"left\"\u003eEndpoints\u003c/h2\u003e\n\n###\n\n\u003ch2 align=\"left\"\u003eProducts\u003c/h2\u003e\n\n| Method | Functionality | URL |\n|---|---|---|\n| `GET` | List all products | http://localhost:3001/products |\n| `GET` | List a product whose name includes the string | http://localhost:3001/products?q |\n| `GET` | List a product based on its id | http://localhost:3001/products/:id |\n| `POST` | Create a new product | http://localhost:3001/products |\n| `DELETE` | Delete a product based on its id | http://localhost:3001/products/:id |\n| `PUT` | Update a product based on its id | http://localhost:3001/products/:id |\n\n###\n\n\u003ch2 align=\"left\"\u003eSales\u003c/h2\u003e\n\n| Method | Functionality | URL |\n|---|---|---|\n| `GET` | List all sales | http://localhost:3001/sales |\n| `GET` | List a sale based on its id | http://localhost:3001/sales/:id |\n| `POST` | Create a new sale | http://localhost:3001/sales |\n| `DELETE` | Delete a sale based on its id | http://localhost:3001/sales/:id |\n| `PUT` | Update a sale based on its id | http://localhost:3001/sales/:id |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frafaelmoraes003%2Fstore-manager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frafaelmoraes003%2Fstore-manager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frafaelmoraes003%2Fstore-manager/lists"}