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.
A simple full-stack app for submitting and viewing assistance requests, backed by SQLite.
Rendering mermaid diagram...
- Persistent storage — requests saved to SQLite (
assistance_requeststable) - Server-side rendering — GET
/returns HTML with all saved requests pre-loaded - REST API — POST
/api/requeststo create a new request - Validation — both frontend and backend reject empty submissions
- No page refresh —
fetchAPI + DOM manipulation for seamless UX
| File | Purpose |
|---|---|
main.tsx | HTTP handler: routing, DB queries, HTML generation |
script.js | Client-side form handling via fetch API |
style.css | Minimal styling |
Built with Val Town.