APP
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://Olaolu001--51947f143faa11f09cea76b3cceeab13.web.val.run
A marketplace app where people can post used items for sale and negotiate in a public chat room.
- π¦ Post items for sale with title, description, price, and contact info
- π¬ Public chat room for negotiations and discussions
- π Browse all available items
- π± Responsive design
βββ backend/
β βββ database/
β β βββ migrations.ts # Database schema setup
β β βββ queries.ts # Database query functions
β βββ routes/
β β βββ items.ts # Item CRUD operations
β β βββ chat.ts # Chat message operations
β βββ index.ts # Main Hono server
βββ frontend/
β βββ components/
β β βββ App.tsx # Main app component
β β βββ ItemList.tsx # Display items for sale
β β βββ ItemForm.tsx # Form to post new items
β β βββ ChatRoom.tsx # Public chat interface
β βββ index.html # Main HTML template
β βββ index.tsx # Frontend entry point
βββ shared/
βββ types.ts # Shared TypeScript types
- Backend: Hono (TypeScript API framework)
- Database: SQLite
- Frontend: React with TypeScript
- Styling: TailwindCSS
- Real-time: Polling for chat updates
The app is automatically deployed on Val Town. Visit the HTTP endpoint to start using the marketplace.