NdaulaPM
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://sakwah--8de995383fac11f0b7af76b3cceeab13.web.val.run
A comprehensive web application for managing rental properties, tracking rent payments, maintenance costs, staff payments, and taxes.
- Rent Payments: Track tenant payments, due dates, and payment history
- Maintenance Costs: Log and categorize property maintenance expenses
- Staff Payments: Manage payments to contractors, cleaners, and other staff
- Tax Management: Track tax-deductible expenses and generate reports
- Financial Dashboard: Overview of income, expenses, and profitability
βββ backend/
β βββ database/
β β βββ migrations.ts # Database schema setup
β β βββ queries.ts # Database query functions
β βββ routes/
β β βββ payments.ts # Rent payment endpoints
β β βββ maintenance.ts # Maintenance cost endpoints
β β βββ staff.ts # Staff payment endpoints
β β βββ taxes.ts # Tax-related endpoints
β βββ index.ts # Main API server
βββ frontend/
β βββ components/
β β βββ App.tsx # Main application component
β β βββ Dashboard.tsx # Financial overview dashboard
β β βββ RentPayments.tsx # Rent payment management
β β βββ Maintenance.tsx # Maintenance cost tracking
β β βββ StaffPayments.tsx# Staff payment management
β β βββ TaxReports.tsx # Tax reporting and analytics
β βββ index.html # Main HTML template
β βββ index.tsx # Frontend entry point
βββ shared/
βββ types.ts # Shared TypeScript interfaces
- The app will automatically set up the database on first run
- Navigate to the main page to access the dashboard
- Use the navigation to switch between different management sections
- tenants: Tenant information and lease details
- rent_payments: Rent payment records
- maintenance_costs: Property maintenance expenses
- staff_payments: Payments to staff and contractors
- tax_categories: Tax-deductible expense categories