simanon
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://lilac--2c6fc0343f9d11f08f5776b3cceeab13.web.val.run
A personal book library management application built with Val Town.
- π Add, edit, and delete books from your personal library
- π Search books by title, author, or genre
- π Track reading status (Want to Read, Currently Reading, Read)
- β Rate books and add personal notes
- π± Responsive web interface
βββ backend/
β βββ database/
β β βββ migrations.ts # Database schema setup
β β βββ queries.ts # Database query functions
β βββ routes/
β β βββ books.ts # Book CRUD API routes
β βββ index.ts # Main Hono server
βββ frontend/
β βββ components/
β β βββ App.tsx # Main React application
β β βββ BookCard.tsx # Individual book display
β β βββ BookForm.tsx # Add/edit book form
β β βββ SearchBar.tsx # Search and filter component
β βββ index.html # Main HTML template
β βββ index.tsx # Frontend entry point
β βββ style.css # Custom styles
βββ shared/
βββ types.ts # Shared TypeScript types
- The app will automatically set up the database on first run
- Navigate to the app URL to start managing your book library
- Use the "Add Book" button to add your first book
GET /api/books
- Get all books with optional search/filterPOST /api/books
- Add a new bookPUT /api/books/:id
- Update an existing bookDELETE /api/books/:id
- Delete a book
- Backend: Hono.js with SQLite database
- Frontend: React with TypeScript
- Styling: TailwindCSS
- Platform: Val Town