CoolTown
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in miliseconds.
Viewing readonly version of main branch: v11View latest version
A simple todo application built with Hono backend and React frontend, using SQLite for data persistence.
- ✅ Add new todos
- ✅ Mark todos as complete/incomplete
- ✅ Delete todos
- ✅ Persistent storage with SQLite
- ✅ Real-time updates
├── backend/
│ ├── database/
│ │ ├── migrations.ts # Database schema
│ │ └── queries.ts # Database operations
│ ├── routes/
│ │ └── todos.ts # Todo API routes
│ └── index.ts # Main Hono app
├── frontend/
│ ├── components/
│ │ ├── App.tsx # Main React component
│ │ └── TodoItem.tsx # Individual todo component
│ ├── index.html # HTML template
│ └── index.tsx # React entry point
└── shared/
└── types.ts # Shared TypeScript types
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 runs on Val Town with automatic deployment. The database is automatically initialized on first run.