Simple Form with SQLite

A minimal form that collects user data and stores it in SQLite.

Files

  • main.ts - HTTP val with form and submission handling
  • db.ts - SQLite database operations

Usage

Visit the HTTP endpoint to see the form. Submit name and email to store in database.

Database

Data is stored in form_submissions table with columns:

  • id (auto-increment)
  • name
  • email
  • created_at (timestamp)