osakwe1
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.
index.ts
https://osakwe--535391c43fbd11f0b60676b3cceeab13.web.val.run
A full-stack application for house owners to post rental properties and engage in public discussions about rental prices.
- 🏠 Property Listings: House owners can post their properties for rent
- 💬 Public Chat Room: Community discussion about rental prices and market trends
- 📱 Responsive Design: Works on desktop and mobile devices
- 🔍 Property Search: Filter properties by location, price range, and type
- Frontend: React 18.2.0 with TypeScript
- Backend: Hono framework
- Database: SQLite
- Styling: TailwindCSS
- Real-time: WebSocket for chat functionality
├── backend/
│ ├── database/
│ │ ├── migrations.ts # Database schema
│ │ └── queries.ts # Database operations
│ ├── routes/
│ │ ├── properties.ts # Property CRUD operations
│ │ └── chat.ts # Chat functionality
│ └── index.ts # Main server entry point
├── frontend/
│ ├── components/
│ │ ├── App.tsx # Main app component
│ │ ├── PropertyList.tsx # Property listings
│ │ ├── PropertyForm.tsx # Add new property form
│ │ └── ChatRoom.tsx # Chat interface
│ ├── index.html # HTML template
│ └── index.tsx # Frontend entry point
└── shared/
└── types.ts # Shared TypeScript types
- The app will automatically set up the database on first run
- Navigate to the app URL to start using the platform
- Add properties using the "Add Property" form
- Join the chat room to discuss rental prices with other users
GET /api/properties
- Get all propertiesPOST /api/properties
- Add new propertyGET /api/chat/messages
- Get chat messagesPOST /api/chat/messages
- Send chat message