Public
Like
HTOC
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.
This directory contains the server-side code for the House Hunter application.
index.ts- Main entry point for the backenddatabase/- Database schema and queriesroutes/- API route handlers
GET /api/properties- Get all properties with optional filtering- Query parameters:
minPrice- Minimum pricemaxPrice- Maximum priceminBedrooms- Minimum number of bedroomsminBathrooms- Minimum number of bathroomscity- Filter by citystate- Filter by statesearchTerm- Search in title, description, address, and city
- Query parameters:
GET /api/properties/:id- Get a single property by IDGET /api/properties/cities- Get list of available citiesGET /api/properties/states- Get list of available states
GET /api/project-info- Get information about the project for the view source link
The backend serves static files from the /frontend and /shared directories.