c
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.
index.ts
https://Sujal5--178fe42839f811f098499e149126039e.web.val.run
A comprehensive bill management system for fabrication businesses with admin and customer portals.
- Generate and edit bills
- Manage customers
- Track payments
- View payment history
- Download bills as PDF
- View assigned bills
- Make payments
- Track payment history
- Download bills as PDF
βββ backend/
β βββ database/
β β βββ migrations.ts # Database schema
β β βββ queries.ts # Database operations
β βββ routes/
β β βββ auth.ts # Authentication routes
β β βββ bills.ts # Bill management
β β βββ payments.ts # Payment processing
β β βββ static.ts # Static file serving
β βββ index.ts # Main server entry
βββ frontend/
β βββ components/
β β βββ App.tsx # Main application
β β βββ Login.tsx # Login component
β β βββ AdminDashboard.tsx
β β βββ CustomerDashboard.tsx
β β βββ BillForm.tsx # Bill creation/editing
β β βββ BillList.tsx # Bill listing
β β βββ PaymentModal.tsx
β β βββ BillPDF.tsx # PDF generation
β βββ index.html
β βββ index.tsx
β βββ style.css
βββ shared/
βββ types.ts # Shared TypeScript types
- Backend: Hono (TypeScript)
- Frontend: React with TypeScript
- Database: SQLite
- Styling: TailwindCSS
- PDF Generation: jsPDF
- Authentication: JWT tokens
- The application will automatically set up the database on first run
- Admin Login Credentials:
- Email:
admin@fabrication.com
- Password:
admin123
- Email:
- Application URL: https://Sujal5--178fe42839f811f098499e149126039e.web.val.run
- Access the application via the HTTP endpoint and login with the admin credentials above