untitled-6073
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://Ayskrmi028--53cc1a763f6911f08b5e76b3cceeab13.web.val.run
A simple, full-stack to-do list application built with Val Town.
- β Add new tasks
- βοΈ Edit existing tasks
- β Delete tasks
- βοΈ Mark tasks as complete/incomplete
- πΎ Persistent storage with SQLite
βββ backend/
β βββ index.ts # Main Hono API server
β βββ database/
β β βββ migrations.ts # Database schema
β β βββ queries.ts # Database operations
β βββ routes/
β βββ tasks.ts # Task CRUD operations
βββ frontend/
β βββ index.html # Main HTML template
β βββ index.tsx # React frontend
β βββ components/
β βββ App.tsx # Main app component
β βββ TaskItem.tsx # Individual task component
β βββ TaskForm.tsx # Add/edit task form
βββ shared/
βββ types.ts # Shared TypeScript types
GET /api/tasks
- Get all tasksPOST /api/tasks
- Create a new taskPUT /api/tasks/:id
- Update a taskDELETE /api/tasks/:id
- Delete a task
- Backend: Hono (API framework)
- Database: SQLite
- Frontend: React with TypeScript
- Styling: TailwindCSS