Public
Like
Plantswap
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://catalina906--d82cf4023fa511f09df876b3cceeab13.web.val.run
A community platform for sharing, donating, and exchanging plant cuttings, potted plants, and trees.
- User Profiles: Create and manage personal profiles with contact information
- Plant Listings: Upload photos and details of plants available for donation/exchange
- Messaging System: Direct communication between users for coordinating exchanges
- Plant Categories: Support for cuttings, potted plants, and trees
- Search & Browse: Find plants by type, location, or availability
βββ backend/
β βββ database/
β β βββ migrations.ts # Database schema setup
β β βββ queries.ts # Database query functions
β βββ routes/
β β βββ auth.ts # User authentication
β β βββ plants.ts # Plant CRUD operations
β β βββ messages.ts # Messaging system
β β βββ static.ts # Static file serving
β βββ index.ts # Main Hono app entry point
βββ frontend/
β βββ components/
β β βββ App.tsx # Main app component
β β βββ Profile.tsx # User profile management
β β βββ PlantCard.tsx # Plant listing display
β β βββ PlantForm.tsx # Add/edit plant form
β β βββ Messages.tsx # Messaging interface
β βββ index.html # Main HTML template
β βββ index.tsx # Frontend entry point
βββ shared/
βββ types.ts # Shared TypeScript types
- Backend: Hono (TypeScript API framework)
- Database: SQLite with Val Town's sqlite service
- Frontend: React with TypeScript
- Styling: TailwindCSS
- Storage: Val Town blob storage for images
- Authentication: Simple session-based auth
The app is automatically deployed on Val Town. Visit the HTTP endpoint to start using the application.