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: v20View 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.