This is the frontend application for the Inventory Management system built as part of the Breakable Toy I project at Encora. It allows users to manage products, visualize inventory metrics, and interact with a clean, responsive UI.
- TypeScript
- React
- Vite
- Tailwind CSS
- Axios
- Chart.js
- π Search & Filter: Filter products by name, category, and stock availability.
- π¦ Product Management: Create, update, delete, and restock products with modal forms.
- π Data Visualization: See bar charts for stock and pricing per category.
- π Dark Mode: Fully styled interface with Tailwind and dark theme.
- π± Responsive Design: Mobile-first and fully adaptive layout.
src/api/: Axios configuration and API methodscomponents/: Reusable UI components (ProductForm, SearchBar, etc.)assets/: Logos and imagesApp.tsx: Main app logic and routingmain.tsx: Entry point
npm install
npm run dev
npm run buildThe app will be available at: http://localhost:8080
Make sure the backend is running on http://localhost:9090
This frontend connects to a REST API built with Spring Boot. All API calls are handled using Axios via the methods in src/api/products.ts.
We use Chart.js to display:
- Total stock per category
- Average price per category These charts are automatically updated when product data changes.
This project is built with Vite, making it easy to deploy to:
- GitHub Pages
- Netlify / Vercel
- Docker container (with NGINX)
Raymundo Daniel Zamora JuΓ‘rez
Encora SPARK Program Β· 2025