Public
Like
helton
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Viewing readonly version of main branch: v5View latest version
A comprehensive inventory tracking and stock movement control system for wholesale businesses.
- Product Management: Add, edit, and categorize products
- Stock Movement Tracking: Record inbound/outbound stock movements
- Inventory Control: Real-time stock levels and low stock alerts
- Supplier Management: Track supplier information and purchase orders
- Reports: Stock movement history and inventory reports
- Dashboard: Overview of key metrics and alerts
├── backend/
│ ├── database/
│ │ ├── migrations.ts # Database schema setup
│ │ └── queries.ts # Database query functions
│ ├── routes/
│ │ ├── products.ts # Product CRUD operations
│ │ ├── movements.ts # Stock movement operations
│ │ ├── suppliers.ts # Supplier management
│ │ └── static.ts # Static file serving
│ └── index.ts # Main Hono app entry point
├── frontend/
│ ├── components/
│ │ ├── App.tsx # Main React app
│ │ ├── Dashboard.tsx # Dashboard overview
│ │ ├── ProductList.tsx # Product management
│ │ ├── StockMovements.tsx # Stock movement tracking
│ │ └── Reports.tsx # Reporting interface
│ ├── index.html # Main HTML template
│ └── index.tsx # Frontend entry point
└── shared/
└── types.ts # Shared TypeScript types
- The app will automatically set up the database on first run
- Navigate to the main URL to access the dashboard
- Start by adding products and suppliers
- Record stock movements as inventory changes
- Monitor stock levels and generate reports
GET /api/products- List all productsPOST /api/products- Create new productPUT /api/products/:id- Update productDELETE /api/products/:id- Delete productGET /api/movements- List stock movementsPOST /api/movements- Record stock movementGET /api/suppliers- List suppliersPOST /api/suppliers- Create supplierGET /api/dashboard- Dashboard data
- products: Product information and current stock levels
- suppliers: Supplier contact and details
- stock_movements: All inbound/outbound stock transactions
- categories: Product categorization