e
win-wall
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://exsoylentgreen--019d97219e2a7242a257d05dd14e0950.web.val.run
A wall of testimonials / wins. People can submit testimonials, an admin can approve or reject them, and approved ones appear on the public wall.
/β Public win wall showing approved testimonials/submitβ Form for anyone to submit a testimonial/adminβ Admin panel to approve, reject, or delete testimonials
Rendering mermaid diagram...
index.ts β Hono HTTP server (entrypoint)
api/
testimonials.ts β REST API routes
database/
queries.ts β SQLite query functions
shared/
types.ts β TypeScript types shared between frontend & backend
frontend/
index.html β HTML shell
index.tsx β React entry point
api.ts β Client-side API helpers
hooks/
useRoute.ts β Simple client-side router hook
components/
App.tsx β Root component with routing
Nav.tsx β Navigation bar
TestimonialCard.tsx β Card for the public wall
AdminCard.tsx β Card with approve/reject/delete actions
pages/
WallPage.tsx β Public testimonials wall
SubmitPage.tsx β Submission form
AdminPage.tsx β Admin management panel