{"id":28511327,"url":"https://github.com/hello-arth/react-stock","last_synced_at":"2026-04-18T01:01:23.885Z","repository":{"id":296105648,"uuid":"986970505","full_name":"hello-arth/react-stock","owner":"hello-arth","description":"A simple single-page application (SPA) built with React to manage inventory items","archived":false,"fork":false,"pushed_at":"2025-05-29T23:09:24.000Z","size":42,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-03T11:42:20.212Z","etag":null,"topics":["bootstrap","css-modules","javascript","react","react-router-dom"],"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/hello-arth.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,"zenodo":null}},"created_at":"2025-05-20T11:40:59.000Z","updated_at":"2025-05-29T23:09:27.000Z","dependencies_parsed_at":"2026-03-05T07:03:17.203Z","dependency_job_id":null,"html_url":"https://github.com/hello-arth/react-stock","commit_stats":null,"previous_names":["hello-arth/react-stock"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hello-arth/react-stock","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hello-arth%2Freact-stock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hello-arth%2Freact-stock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hello-arth%2Freact-stock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hello-arth%2Freact-stock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hello-arth","download_url":"https://codeload.github.com/hello-arth/react-stock/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hello-arth%2Freact-stock/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31952206,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"ssl_error","status_checked_at":"2026-04-18T00:39:20.671Z","response_time":62,"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":["bootstrap","css-modules","javascript","react","react-router-dom"],"created_at":"2025-06-09T00:00:44.286Z","updated_at":"2026-04-18T01:01:23.865Z","avatar_url":"https://github.com/hello-arth.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 📦 React Stock\n\nAplicação web construída com React + Vite para gerenciamento de estoque. Possui rotas dinâmicas, formulários, componentes reutilizáveis, controle de estado via Context API e estrutura modularizada.\n\n## 🧰 Stack utilizada\n\n- React\n- Vite\n- React Router\n- Context API\n- ESLint (Flat config)\n- Bootstrap\n- CSS global (para estilos gerais)\n- CSS Modules (para estilos modularizados em componentes)\n\n## 📁 Estrutura do Projeto\n\n- `src/views`: Páginas principais do sistema (Dashboard, Itens, Novo Item, Atualizar Item, etc).\n- `src/components`: Componentes reutilizáveis (como Header, Tabela, Formulário de Itens).\n- `src/layouts`: Layouts para páginas com e sem navegação.\n- `src/contexts`: Contexto do estoque para gerenciar estado global.\n- `src/hooks`: Hooks personalizados para lógica de manipulação de itens (`useStock`, `useStockCollection`).\n- `src/entities`: Entidade `StockItem`, representando a estrutura de um item.\n- `src/error-boundaries`: Componente de boundary de erro para isolar falhas.\n- `src/loaders`: Funções auxiliares para carregar dados.\n- `src/router.jsx`: Definição das rotas da aplicação com React Router.\n- `index.html` / `main.jsx`: Arquivo de entrada e bootstrap da aplicação.\n\n## 🚀 Como rodar o projeto\n\n1. Clone o repositório:\n   ```bash\n   git clone https://github.com/hello-arth/react-stock.git\n   cd react-stock\n   ```\n\n2. Instale as dependências:\n   ```bash\n   npm install\n   ```\n\n3. Inicie o servidor de desenvolvimento:\n   ```bash\n   npm run dev\n   ```\n\n## 🔄 Funcionalidades\n\n- Cadastro de novos itens no estoque\n- Atualização e remoção de itens existentes\n- Visualização de lista com totais\n- Persistência de dados no `localStorage`\n- Navegação por rotas (SPA)\n- Gerenciamento de estado com Context API e hooks personalizados\n- Feedback visual para estados vazios\n- Tratamento de falhas com boundary de erro\n\n## 🧪 Scripts\n\n- `npm run dev`: inicia o servidor local\n- `npm run build`: gera build de produção\n- `npm run lint`: executa ESLint com a configuração Flat\n\n## 📸 Capturas de Tela\n\n\n![React Kanban](https://github.com/user-attachments/assets/33975664-56ef-4512-a0f2-a10552c4b013)\n\n\n## 📄 Licença\n\nMIT © [hello-arth](https://github.com/hello-arth)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhello-arth%2Freact-stock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhello-arth%2Freact-stock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhello-arth%2Freact-stock/lists"}