How charlesfransisco/weather-app-and-travel-recomendations works
A browser-based weather and travel recommendation app: users search a city, view live conditions, then request three weather-matched places in a modal. The frontend calls separate serverless handlers; one proxies OpenWeatherMap and the other sends a weather prompt to Groq. README documents responsive presentation and keyboard search, but the supplied excerpts do not show their wiring or styling details. Relationships below follow visible fetch calls and documented external integrations.
Main entry points: script.js Search and modal logic · weather.js Weather proxy · recommend.js Recommendation proxy · index.html Weather page
Components 8
Browser experience
- Weather page
index.html - Search and modal logic
script.js - Responsive styling
style.css
API handlers
- Weather proxy
api/weather.js - Recommendation proxy
api/recommend.js
External services
- OpenWeatherMap
- Groq AI
Other components
- Traveler
Connections 8
- Traveler → Weather page: uses
README.md - Weather page → Search and modal logic: loads
README.md - Search and modal logic → Weather proxy: fetches weather
script.js - Weather proxy → OpenWeatherMap: requests conditions
README.md - Weather proxy → Search and modal logic: returns weather
- Search and modal logic → Recommendation proxy: posts weather
script.js - Recommendation proxy → Groq AI: requests suggestions
api/recommend.js - Recommendation proxy → Search and modal logic: returns suggestions