• Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
mattwd7

mattwd7

hotelsList

Public
Like
hotelsList
Home
Code
4
backend
3
frontend
2
shared
1
README.md
Branches
1
Pull requests
Remixes
History
Environment variables
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.
Sign up now
Code
/
backend
/
README.md
Code
/
backend
/
README.md
Search
5/20/2025
Viewing readonly version of main branch: v8
View latest version
README.md

Hotel Finder Backend

This directory contains the backend API for the Hotel Finder application.

Structure

  • index.ts - Main entry point for the HTTP API
  • services/hotelService.ts - Service for fetching hotel data

API Endpoints

GET /api/hotels

Fetches hotels by zip code.

Query Parameters:

  • zipCode (required) - The zip code to search for hotels

Response:

{ "hotels": [ { "id": "string", "name": "string", "address": "string", "zipCode": "string", "city": "string", "state": "string", "rating": 4.5, "amenities": ["string"], "imageUrl": "string", "weeklyPrice": 700, "nightlyPrice": 120 } ], "totalResults": 5, "zipCode": "10001" }

Notes

  • The current implementation uses mock data. In a production environment, this would be replaced with calls to a real hotel API.
  • Hotels are sorted by weekly price (lowest to highest).
FeaturesVersion controlCode intelligenceCLIMCP
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Open Source Pledge
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.