Public
Remixed
Simple page for submitting and viewing assistance requests
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.

📋 Assistance Requests

A simple full-stack app for submitting and viewing assistance requests, backed by SQLite.

How it works

Rendering mermaid diagram...

Features

  • Persistent storage — requests saved to SQLite (assistance_requests table)
  • Server-side rendering — GET / returns HTML with all saved requests pre-loaded
  • REST API — POST /api/requests to create a new request
  • Validation — both frontend and backend reject empty submissions
  • No page refreshfetch API + DOM manipulation for seamless UX

Files

FilePurpose
main.tsxHTTP handler: routing, DB queries, HTML generation
script.jsClient-side form handling via fetch API
style.cssMinimal styling

Built with Val Town.