How stuvascript/dog-app works
Dog App is a browser-based breed finder. Users submit a breed search, receive matching breeds, select one for breed facts and images, and can navigate back to the results or home. The graph separates interaction flow, API/data handling, and rendered views; The Dog API is an external service. Relationships are based on the shown source and README; no persistent store is present.
Main entry points: event-handlers.js Search and navigation · dom-manipulation.js DOM rendering · functions.js Breed API requests · index.js App startup
Components 8
User interaction
- App startup
src/index.js - Search and navigation
src/modules/event-handlers.js
Breed data
- Breed API requests
src/modules/functions.js - Breed data shaping
src/modules/functions.js
Rendered views
- DOM rendering
src/modules/dom-manipulation.js - App images
src/images
Other components
- Visitor
- The Dog API
Connections 11
- Visitor → Search and navigation: submits or selects
README.md - App startup → DOM rendering: starts home view
src/index.js - App startup → Search and navigation: registers handlers
src/index.js - Search and navigation → Breed API requests: searches breeds
src/modules/event-handlers.js - Breed API requests → The Dog API: fetches breed matches
src/modules/functions.js - Breed API requests → The Dog API: fetches breed details
src/modules/functions.js - Search and navigation → Breed data shaping: builds result list
src/modules/event-handlers.js - Search and navigation → DOM rendering: renders results and details
src/modules/event-handlers.js - Breed data shaping → DOM rendering: supplies display data
src/modules/event-handlers.js - DOM rendering → App images: uses loading and branding images
src/modules/dom-manipulation.js - Visitor → DOM rendering: navigates back or home
README.md