How rusa1212/handwriting-code works
This is a Korean route-recommendation app with two user-facing areas: a route recommendation workflow and an algorithm lab. In the main workflow, users choose endpoints by place search, map click, or current location; the backend fetches candidate routes, scores them against user preferences, and the frontend displays route choices and a highlighted recommendation on a Kakao map. The lab exposes graph-search algorithms over the Gumi road network. Several backend/frontend relationships are supported by excerpts or the SOURCE INDEX; links to unsampled integrations are omitted where their invocation is not shown.
Main entry points: RecommendPage.jsx Recommend page · main.py FastAPI endpoints · App.jsx App tabs · lab.py Lab search runner
Components 22
Frontend experience
- App tabs
frontend/src/App.jsx - Recommend page
frontend/src/pages/RecommendPage.jsx - Endpoint panel
frontend/src/components/SearchPanel.jsx - Place input
frontend/src/components/PlaceSearchInput.jsx - Preference controls
frontend/src/components/PreferencePanel.jsx - Route list
frontend/src/components/RouteList.jsx - Route card
frontend/src/components/RouteCard.jsx - Recommendation reason
frontend/src/components/RecommendReason.jsx - Map display
frontend/src/components/MapView.jsx - Geolocation
frontend/src/lib/geolocation.js - API client
frontend/src/api/client.js
Route services
- FastAPI endpoints
be/main.py - Map and route lookup
be/map_api.py - Route scoring
be/scoring.py
Algorithm lab
- Algorithm lab page
frontend/src/pages/AlgorithmLabPage.jsx - Lab search runner
be/lab.py - Search algorithms
be/search.py - Road graph
be/graph.py - OSM data fetch
be/fetch_osm.py - Gumi road data
be/data/gumi_roads.json
Shared contracts
- API schemas
be/schemas.py
Other components
- Driver
Connections 24
- Driver → App tabs: uses
frontend/src/App.jsx - App tabs → Recommend page: shows
frontend/src/App.jsx - App tabs → Algorithm lab page: shows
frontend/src/App.jsx - Recommend page → Endpoint panel: renders
frontend/src/pages/RecommendPage.jsx - Recommend page → Preference controls: renders
frontend/src/pages/RecommendPage.jsx - Recommend page → Route list: renders
frontend/src/pages/RecommendPage.jsx - Recommend page → Recommendation reason: renders
frontend/src/pages/RecommendPage.jsx - Recommend page → Map display: renders
frontend/src/pages/RecommendPage.jsx - Endpoint panel → Place input: renders
frontend/src/components/SearchPanel.jsx - Place input → API client: searches places
frontend/src/components/PlaceSearchInput.jsx - Route list → Route card: renders
frontend/src/components/RouteList.jsx - Recommend page → API client: requests routes and scores
frontend/src/pages/RecommendPage.jsx - Recommend page → Geolocation: gets position
frontend/src/pages/RecommendPage.jsx - API client → FastAPI endpoints: sends API requests
be/main.py - FastAPI endpoints → Map and route lookup: calls lookup
be/main.py - FastAPI endpoints → Route scoring: calls scoring
be/main.py - FastAPI endpoints → Lab search runner: calls search runner
be/main.py - FastAPI endpoints → API schemas: validates payloads
be/main.py - Lab search runner → Search algorithms: runs algorithms
be/lab.py - Lab search runner → Road graph: loads graph
be/lab.py - Search algorithms → Road graph: searches graph
be/search.py - OSM data fetch → Gumi road data: writes data
- Road graph → Gumi road data: loads data
- Algorithm lab page → Map display: renders map
frontend/src/pages/AlgorithmLabPage.jsx