SmartInv is a modern, high-performance Smart Inventory Management System dashboard built as a standalone frontend demo. This project showcases a premium UI/UX, robust state management, and a production-ready CI/CD pipeline.
The project follows a modern Frontend-first architecture designed for rapid deployment and high scalability.
graph TD
User((User/Client)) -->|HTTPS| Vercel[Vercel Edge Network]
subgraph "CI/CD Pipeline (GitHub Actions)"
GitHub[GitHub Repository] -->|Push/PR| GHA[GitHub Actions CI]
GHA --> Test{Unit Tests}
Test -->|Pass| Build[Build Verification]
Test -->|Fail| Stop[Deployment Blocked]
Build -->|Pass| Vercel[Vercel Production]
Build -->|Fail| Stop
end
subgraph "Frontend Application Core"
App[App Layer]
Context[React Context API]
UI[Tailwind + Framer Motion]
Router[React Router v7]
App --> Router
Router --> Context
Context --> UI
end
Build -->|Deploys to| Vercel
Vercel -->|Serves| App
- Runtime: React 19 (Latest stable features)
- Build Tool: Vite (Ultra-fast development environment)
- Language: TypeScript (Strong typing & maintainability)
- Styling: Tailwind CSS (Utility-first design system)
- Animation: Framer Motion (Fluid 60fps micro-interactions)
- State Management: React Context API (Global inventory & auth state)
- Routing: React Router DOM v7 (Data-aware routing)
- Validation: Vitest + React Testing Library
- UI Components: Lucide React & Sonner (Custom premium components)
- 📊 Inventory Dashboard: Real-time visualization of stock levels and movement logs.
- 📦 Stock Control: Full CRUD operations with automatic low-stock alerting systems.
- 🔐 Auth Simulation: Role-based access (Super Admin / Admin) with persistence.
- 💡 Sticky UI: Optimized navigation with sticky headers and responsive layouts.
- 🏗️ Docker Ready: Fully containerized environment with a built-in testing gate.
- 🧪 100% Core Coverage: Robust unit tests for all critical user flows.
frontend/
├── components/ # Reusable UI components (Sidebar, Navbar, Card, etc.)
├── pages/ # Full page layouts (Dashboard, Inventory, Login, etc.)
├── src/
│ ├── __tests__/ # Unit test suite (Vitest)
│ └── test/ # Test configuration and setup
├── context.tsx # Global State Management (Auth & Inventory)
├── types.ts # Shared TypeScript definitions
└── Dockerfile # Multi-stage production build configuration
-
Clone the repository:
git clone https://github.com/jasenalfatamaa/smart-inventory-system.git cd smart-inventory-system/frontend -
Install dependencies:
npm install
-
Run Development Server:
npm run dev
-
Run Tests:
npm test
The project implements a zero-trust deployment model:
- Build Gate: The
Dockerfileandci.ymlboth runnpm testbefore allowing any build to proceed. - Quality Gate: GitHub Actions verifies linting and code integrity.
- Deployment: Vercel automatically deploys the
mainbranch only after CI status passes.
Jasen Alfatama - Full Stack Developer - GitHub
Developed with ❤️ as a high-fidelity frontend engineering demonstration.