todo-list-test
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 kimi-k2-groq branch: v9View latest version
A simple persistent todo list application built with:
- Backend: Hono server with SQLite for data persistence
- Frontend: Client-side React with Tailwind CSS
- Database: SQLite for storing todos
- ✅ Add new todos
- ✅ Mark todos as complete/incomplete
- ✅ Edit todo text (double-click to edit)
- ✅ Delete todos
- ✅ Persistent storage with SQLite
- ✅ Responsive design with Tailwind CSS
/
├── index.ts # Main Hono server entry point
├── backend/
│ ├── database/
│ │ └── schema.ts # Database schema and operations
│ └── routes/
│ └── todos.ts # API routes for todos
├── frontend/
│ └── App.jsx # React frontend application
├── shared/
│ └── types.ts # Shared TypeScript interfaces
└── README.md # This file
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 will automatically initialize the SQLite database on first run
- Visit the root URL to access the web interface
- Use the input field to add new todos
- Click checkboxes to mark todos as complete/incomplete
- Double-click on todo text to edit
- Click the delete button to remove todos
The app uses:
- React 18.2.0 for the frontend
- Hono for the backend framework
- SQLite for persistent storage
- Tailwind CSS for styling
- Babel for JSX transformation in the browser
