How azharsheikh-ruby/netlify-sites-frontend-challenge works
This is a React Sites List frontend for viewing and managing sites by team. On startup, the app fetches teams and sites; users can select a team, search, sort, page through results, open a site, toggle favorites, and add sites. App.js owns the state and these behaviors, while the Axios client handles API requests and json-server persists data in the local JSON database. The README documents the major capabilities and API; the graph reflects the sampled App.js and client rather than inferring unsampled UI modules.
Main entry points: App.js App state and orchestration · client.js Axios API client · db.json Sites and teams data
Components 10
Sites List experience
- App state and orchestration
src/App.js - Team selection
src/App.js - Search, sort, pagination
src/App.js - Site cards and navigation
src/App.js - Favorite toggling
src/App.js - Add site form
src/App.js
API and persistence
- Axios API client
src/api/client.js - json-server API
- Sites and teams data
src/data/db.json
Other components
- User
Connections 9
- User → App state and orchestration: uses
README.md - App state and orchestration → Axios API client: requests data
src/App.js - App state and orchestration → Team selection: selects team
src/App.js - App state and orchestration → Search, sort, pagination: derives results
src/App.js - App state and orchestration → Site cards and navigation: renders sites
src/App.js - App state and orchestration → Favorite toggling: toggles favorite
src/App.js - App state and orchestration → Add site form: submits site
src/App.js - Axios API client → json-server API: sends requests
src/api/client.js - json-server API → Sites and teams data: persists data
README.md