{"id":48335916,"url":"https://github.com/eugen-goebel/inventory-management","last_synced_at":"2026-04-05T02:03:09.694Z","repository":{"id":347887228,"uuid":"1195383974","full_name":"eugen-goebel/inventory-management","owner":"eugen-goebel","description":"Full-stack inventory management with React/TypeScript frontend and FastAPI/SQLAlchemy backend","archived":false,"fork":false,"pushed_at":"2026-03-29T22:33:55.000Z","size":67,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-30T00:51:37.383Z","etag":null,"topics":["docker","fastapi","full-stack","python","react","rest-api","sqlalchemy","tailwindcss","typescript","vite"],"latest_commit_sha":null,"homepage":null,"language":"Python","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/eugen-goebel.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-29T15:56:49.000Z","updated_at":"2026-03-29T22:33:59.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/eugen-goebel/inventory-management","commit_stats":null,"previous_names":["eugen-goebel/inventory-management"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/eugen-goebel/inventory-management","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eugen-goebel%2Finventory-management","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eugen-goebel%2Finventory-management/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eugen-goebel%2Finventory-management/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eugen-goebel%2Finventory-management/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eugen-goebel","download_url":"https://codeload.github.com/eugen-goebel/inventory-management/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eugen-goebel%2Finventory-management/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31421870,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T00:25:07.052Z","status":"online","status_checked_at":"2026-04-05T02:00:05.211Z","response_time":75,"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":["docker","fastapi","full-stack","python","react","rest-api","sqlalchemy","tailwindcss","typescript","vite"],"created_at":"2026-04-05T02:03:09.134Z","updated_at":"2026-04-05T02:03:09.684Z","avatar_url":"https://github.com/eugen-goebel.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Inventory Management Dashboard\n\nFull-stack inventory management system with a React/TypeScript frontend and FastAPI backend. Tracks products, stock movements, and suppliers with real-time analytics.\n\n![CI](https://github.com/eugen-goebel/inventory-management/actions/workflows/ci.yml/badge.svg)\n![Python](https://img.shields.io/badge/Python-3.10+-blue)\n![TypeScript](https://img.shields.io/badge/TypeScript-5.0+-3178C6)\n![License](https://img.shields.io/badge/License-MIT-green)\n\n## Screenshots\n\n**Dashboard** — KPI cards, stock value by category, top products by value\n![Dashboard](docs/screenshots/01-dashboard.png)\n\n**Products** — Product list with search, category filter, and low-stock indicator\n![Products](docs/screenshots/02-products.png)\n\n**Movements** — Audit trail of inbound/outbound stock movements\n![Movements](docs/screenshots/03-movements.png)\n\n**Login** — JWT authentication with role-based access control (admin/staff/viewer)\n![Login](docs/screenshots/04-login.png)\n\n## Architecture\n\n```\n┌─────────────────────────────────┐\n│     React + TypeScript          │\n│     Vite + Tailwind CSS         │\n│     Recharts                    │\n│     Port 5173 (dev)             │\n└──────────────┬──────────────────┘\n               │ REST API\n               ▼\n┌─────────────────────────────────┐\n│     FastAPI + Python            │\n│     SQLAlchemy ORM              │\n│     Pydantic v2                 │\n│     Port 8000                   │\n└──────────────┬──────────────────┘\n               │\n               ▼\n┌─────────────────────────────────┐\n│     SQLite                      │\n│     inventory.db                │\n└─────────────────────────────────┘\n```\n\n## Features\n\n- **Dashboard**: KPI cards, stock value by category (bar chart), top products, recent movements\n- **Product Management**: CRUD operations, search, category filter, low-stock alerts\n- **Stock Movements**: Record inbound/outbound stock with reference tracking\n- **Supplier Management**: CRUD with product count tracking\n- **Analytics API**: Real-time stock value, category breakdown, movement history\n- **Data Validation**: Pydantic v2 schemas, unique SKU enforcement, stock integrity checks\n- **30+ Backend Tests** with pytest\n\n## Tech Stack\n\n### Frontend\n![React](https://img.shields.io/badge/React-61DAFB?style=flat\u0026logo=react\u0026logoColor=black)\n![TypeScript](https://img.shields.io/badge/TypeScript-3178C6?style=flat\u0026logo=typescript\u0026logoColor=white)\n![Vite](https://img.shields.io/badge/Vite-646CFF?style=flat\u0026logo=vite\u0026logoColor=white)\n![Tailwind CSS](https://img.shields.io/badge/Tailwind_CSS-06B6D4?style=flat\u0026logo=tailwindcss\u0026logoColor=white)\n\n### Backend\n![Python](https://img.shields.io/badge/Python-3776AB?style=flat\u0026logo=python\u0026logoColor=white)\n![FastAPI](https://img.shields.io/badge/FastAPI-009688?style=flat\u0026logo=fastapi\u0026logoColor=white)\n![SQLAlchemy](https://img.shields.io/badge/SQLAlchemy-D71F00?style=flat\u0026logo=sqlalchemy\u0026logoColor=white)\n![SQLite](https://img.shields.io/badge/SQLite-003B57?style=flat\u0026logo=sqlite\u0026logoColor=white)\n\n### DevOps\n![Docker](https://img.shields.io/badge/Docker-2496ED?style=flat\u0026logo=docker\u0026logoColor=white)\n![pytest](https://img.shields.io/badge/pytest-0A9EDC?style=flat\u0026logo=pytest\u0026logoColor=white)\n\n## Quick Start\n\n### With Docker\n\n```bash\ndocker build -t inventory-management .\ndocker run -p 8000:8000 inventory-management\n```\n\nOpen http://localhost:8000 in your browser.\n\n### Manual Setup\n\n**Backend:**\n```bash\ncd backend\npip install -r requirements.txt\npython -m data.seed          # Generate sample data\nuvicorn main:app --reload    # Start API at localhost:8000\n```\n\n**Frontend:**\n```bash\ncd frontend\nnpm install\nnpm run dev                  # Start dev server at localhost:5173\n```\n\n### API Documentation\n\nOnce the backend is running, visit http://localhost:8000/docs for interactive Swagger documentation.\n\n## API Endpoints\n\n| Method | Endpoint | Description |\n|--------|----------|-------------|\n| GET | /api/products | List products (search, category, low_stock filter) |\n| POST | /api/products | Create product |\n| PUT | /api/products/{id} | Update product |\n| DELETE | /api/products/{id} | Delete product (only if stock is 0) |\n| GET | /api/movements | List stock movements |\n| POST | /api/movements | Record stock in/out |\n| GET | /api/suppliers | List suppliers |\n| POST | /api/suppliers | Create supplier |\n| PUT | /api/suppliers/{id} | Update supplier |\n| DELETE | /api/suppliers/{id} | Delete supplier (only if no products) |\n| GET | /api/analytics/dashboard | Dashboard KPIs and charts |\n\n## Project Structure\n\n```\ninventory-management/\n├── backend/\n│   ├── agents/\n│   │   ├── routes.py              # API endpoint definitions\n│   │   ├── product_service.py     # Product CRUD logic\n│   │   ├── movement_service.py    # Stock movement logic\n│   │   ├── supplier_service.py    # Supplier CRUD logic\n│   │   └── analytics_service.py   # Dashboard analytics\n│   ├── models/\n│   │   ├── orm.py                 # SQLAlchemy table definitions\n│   │   └── schemas.py             # Pydantic request/response models\n│   ├── db/\n│   │   └── database.py            # Database connection and session\n│   ├── data/\n│   │   └── seed.py                # Sample data generator\n│   ├── tests/                     # 30+ pytest tests\n│   ├── main.py                    # FastAPI application entry point\n│   └── requirements.txt\n├── frontend/\n│   ├── src/\n│   │   ├── pages/                 # Dashboard, Products, Movements, Suppliers\n│   │   ├── components/            # KpiCard, Modal, Layout, LoadingSpinner\n│   │   ├── api/                   # API client with fetch wrapper\n│   │   └── types/                 # TypeScript interfaces\n│   ├── package.json\n│   └── vite.config.ts\n├── Dockerfile\n└── README.md\n```\n\n## Running Tests\n\n```bash\ncd backend\npytest -v\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feugen-goebel%2Finventory-management","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feugen-goebel%2Finventory-management","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feugen-goebel%2Finventory-management/lists"}