Public
LikePaymentsys
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 Gen Z-style marketplace for second-hand trainers with integrated payment processing and feedback system.
- π Browse and purchase second-hand trainers
- π³ Secure payment processing (Visa/Mastercard via Stripe)
- πΈ Admin area for posting trainers with photo links
- π¬ Customer feedback system
- π± Mobile-first responsive design
- π¨ Gen Z aesthetic with vibrant colors and modern UI
βββ backend/
β βββ index.ts # Main Hono server
β βββ database/
β β βββ migrations.ts # Database schema
β β βββ queries.ts # Database operations
β βββ routes/
β βββ trainers.ts # Trainer CRUD operations
β βββ payments.ts # Stripe payment processing
β βββ feedback.ts # Customer feedback
βββ frontend/
β βββ index.html # Main page
β βββ admin.html # Admin panel for posting trainers
β βββ components/
β β βββ App.tsx # Main React app
β β βββ TrainerCard.tsx
β β βββ PaymentModal.tsx
β β βββ FeedbackForm.tsx
β βββ style.css # Custom styles
βββ shared/
βββ types.ts # Shared TypeScript types
-
Set environment variables:
STRIPE_SECRET_KEY- Your Stripe secret keySTRIPE_PUBLISHABLE_KEY- Your Stripe publishable key
-
The database will be automatically initialized on first run.
- Backend: Hono + SQLite
- Frontend: React + TailwindCSS
- Payments: Stripe
- Storage: Val Town Blob + SQLite