untitled-7517
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: v4View latest version
A comprehensive business management application designed specifically for small vendors to streamline their operations.
- Track products with real-time stock levels
- Low stock alerts and notifications
- Product categories and search functionality
- Bulk inventory updates
- Record sales transactions
- Track payment methods (cash, card, digital)
- Daily/weekly/monthly sales reports
- Revenue analytics and trends
- Customer database with contact information
- Purchase history tracking
- Loyalty points system
- Customer communication tools
- Sales performance metrics
- Top-selling products
- Customer insights
- Inventory turnover rates
βββ backend/
β βββ database/
β β βββ migrations.ts # Database schema setup
β β βββ queries.ts # Database query functions
β βββ routes/
β β βββ inventory.ts # Inventory management endpoints
β β βββ sales.ts # Sales tracking endpoints
β β βββ customers.ts # Customer management endpoints
β β βββ analytics.ts # Analytics and reporting endpoints
β βββ index.ts # Main Hono server
βββ frontend/
β βββ components/
β β βββ App.tsx # Main application component
β β βββ Dashboard.tsx # Analytics dashboard
β β βββ Inventory.tsx # Inventory management
β β βββ Sales.tsx # Sales tracking
β β βββ Customers.tsx # Customer management
β βββ index.html # Main HTML template
β βββ index.tsx # React entry point
βββ shared/
βββ types.ts # Shared TypeScript types
- The app runs on Val Town's serverless platform
- SQLite database for data persistence
- Modern React frontend with TypeScript
- RESTful API with Hono framework
- Inventory: Add products, track stock levels, receive low stock alerts
- Sales: Record transactions, track payment methods, view sales history
- Customers: Manage customer database, track purchase history, loyalty points
- Analytics: View performance metrics, sales trends, and business insights