• Townie
    AI
  • Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
Sujal5

Sujal5

c

Public
Like
c
Home
Code
4
backend
3
frontend
3
shared
1
README.md
Branches
1
Pull requests
Remixes
History
Environment variables
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.
Sign up now
Code
/
Code
/
Search
index.ts
https://Sujal5--178fe42839f811f098499e149126039e.web.val.run
README.md

Fabrication Bill Generator

A comprehensive bill management system for fabrication businesses with admin and customer portals.

Features

Admin Features

  • Generate and edit bills
  • Manage customers
  • Track payments
  • View payment history
  • Download bills as PDF

Customer Features

  • View assigned bills
  • Make payments
  • Track payment history
  • Download bills as PDF

Project Structure

β”œβ”€β”€ 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

Technology Stack

  • Backend: Hono (TypeScript)
  • Frontend: React with TypeScript
  • Database: SQLite
  • Styling: TailwindCSS
  • PDF Generation: jsPDF
  • Authentication: JWT tokens

Getting Started

  1. The application will automatically set up the database on first run
  2. Admin Login Credentials:
    • Email: admin@fabrication.com
    • Password: admin123
  3. Application URL: https://Sujal5--178fe42839f811f098499e149126039e.web.val.run
  4. Access the application via the HTTP endpoint and login with the admin credentials above
HTTP
  • index.ts
    Sujal5--17…9e.web.val.run
Code
backendfrontendsharedREADME.md
FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Terms of usePrivacy policyAbuse contact
Β© 2025 Val Town, Inc.