untitled-7041
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.
Viewing readonly version of main branch: v17View latest version
A full-stack Todo application built with Val Town, featuring:
- Backend: Hono API with SQLite database
- Frontend: React with TypeScript
- Features: Create, read, update, delete todos
βββ backend/
β βββ database/
β β βββ migrations.ts # Database schema
β β βββ queries.ts # Database operations
β βββ routes/
β β βββ todos.ts # Todo API routes
β βββ index.ts # Main API entry point
βββ frontend/
β βββ components/
β β βββ App.tsx # Main app component
β β βββ TodoForm.tsx # Add/edit todo form
β β βββ TodoItem.tsx # Individual todo item
β βββ index.html # HTML template
β βββ index.tsx # Frontend entry point
βββ shared/
β βββ types.ts # Shared TypeScript types
βββ README.md
GET /api/todos- Get all todosPOST /api/todos- Create a new todoPUT /api/todos/:id- Update a todoDELETE /api/todos/:id- Delete a todo
The app is automatically served at the root URL. The backend handles both API requests and serves the frontend files.