How dheerajgoluguri/cafefinder works
CafeFinder is a browser-based cafe discovery app. Users can search by location, browse cafe cards, refine results, view cafe details, and save favorites. The script also handles geolocation, navigation, and an introductory video. The excerpts show the search and filter event handlers, favorite persistence, and modal navigation; much of the implementation and the HTML wiring are omitted, so unsupported connections are left out.
Main entry points: script.js Search handler
Components 14
Cafe discovery
- Search handler
script.js - Search logic
script.js - Cafe catalog
script.js - Result filters
script.js - Geolocation
script.js
Cafe presentation
- Cafe cards
script.js - Opening status
script.js - Cafe details
script.js - Cafe navigation
script.js
Favorites
- Favorite manager
script.js - Saved cafes
script.js
Other components
- Visitor
- Browser location
- Firebase Firestore
Connections 11
- Visitor → Search handler: submits search
script.js - Search handler → Search logic: calls
script.js - Visitor → Result filters: changes filters
script.js - Result filters → Cafe cards: refreshes results
script.js - Visitor → Geolocation: requests location
script.js - Geolocation → Browser location: requests coordinates
script.js - Visitor → Cafe details: opens cafe
- Cafe details → Cafe navigation: starts navigation
script.js - Visitor → Favorite manager: saves cafe
- Favorite manager → Firebase Firestore: writes favorites
script.js - Saved cafes → Firebase Firestore: loads favorites
script.js