{"id":24003482,"url":"https://github.com/johnenderson/smartstock","last_synced_at":"2025-10-14T20:11:42.373Z","repository":{"id":270359163,"uuid":"909368337","full_name":"johnenderson/smartstock","owner":"johnenderson","description":"Objetivo:  desenvolvido para automatizar o processo de recompra de itens em uma empresa de e-commerce.","archived":false,"fork":false,"pushed_at":"2025-01-04T16:15:42.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-14T20:06:32.486Z","etag":null,"topics":["java-21","mongodb","opencsv","spring-boot-3","spring-cloud-openfeign","spring-data-jpa"],"latest_commit_sha":null,"homepage":"","language":"Java","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/johnenderson.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-12-28T13:49:46.000Z","updated_at":"2025-01-04T16:18:48.000Z","dependencies_parsed_at":"2025-02-25T10:44:40.259Z","dependency_job_id":"0a494750-2261-46f1-bcc8-1af395f598f8","html_url":"https://github.com/johnenderson/smartstock","commit_stats":null,"previous_names":["johnenderson/smartstock"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/johnenderson/smartstock","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnenderson%2Fsmartstock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnenderson%2Fsmartstock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnenderson%2Fsmartstock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnenderson%2Fsmartstock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johnenderson","download_url":"https://codeload.github.com/johnenderson/smartstock/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnenderson%2Fsmartstock/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279021003,"owners_count":26086946,"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","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"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":["java-21","mongodb","opencsv","spring-boot-3","spring-cloud-openfeign","spring-data-jpa"],"created_at":"2025-01-08T01:38:53.573Z","updated_at":"2025-10-14T20:11:42.359Z","avatar_url":"https://github.com/johnenderson.png","language":"Java","readme":"# Smart Stock :blue_heart:\n\nO projeto **Smart Stock**, desenvolvido para automatizar o processo de recompra de itens em uma empresa de e-commerce. Atualmente, o processo de recompra é realizado de forma manual: quando a quantidade de um item no estoque cai abaixo do nível mínimo, um analista negocia diretamente com o setor de compras.\n\n## :clipboard: Funcionalidades do sistema\n\n- **Ler um arquivo CSV** gerado por um sistema legado que contém os dados de estoque;\n- **Aplicar regras de negócio** para identificar os itens que precisam ser repostos;\n  - **Recompra automática:** Sempre que um item estiver abaixo da quantidade mínima em estoque, uma solicitação de recompra será gerada. \n  - **Margem de segurança:** A quantidade de recompra deverá ser igual à quantidade mínima, acrescida de **20% de margem de segurança** para evitar falta de estoque.\n- **Integrar com uma API do setor de compras**, utilizando um token de autenticação para garantir a segurança da comunicação;\n- **Persistir os dados no MongoDB** para acompanhamento e auditoria.\n\n## :white_check_mark: Pré-requisitos\n\nVocê precisa ter o CLI docker e docker compose (ou docker-compose) disponíveis no seu `PATH`. A versão mínima suportada do Docker Compose é a 2.2.0.\n\n## :technologist: Tecnologias Usadas\n\n- **Java 21**\n- Spring Boot\n- Spring Data **Mongo DB**\n- [OpenCSV](https://opencsv.sourceforge.net/)\n- [Mockoon](https://mockoon.com/) (configurável via Docker Compose)\n- Spring Cloud OpenFeign\n- Docker e Docker Compose\n- Banco de dados NoSQL **MongoDB** (configurável via Docker Compose)\n\n## :checkered_flag: Como executar o projeto:\n\n1. Clone este repositório:\n```bash\ngit clone git@github.com:johnenderson/smartstock.git\ncd smartstock\n```\n\n2. Inicie o container do **Mongo DB** e do **Mockoon**:\n\u003e O Container do Mongo DB e o container do Mockoon devem estar de pé para funcionamento correto do projeto.\n```bash\ncd docker/\ndocker-compose up\n```\n\n3. Execute o projeto:\n```bash\ncd ..\nmvn spring-boot:run\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnenderson%2Fsmartstock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohnenderson%2Fsmartstock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnenderson%2Fsmartstock/lists"}