How sagaraher17/contact-managment-app works
This is a React contact-management application with registration and login leading to a protected dashboard for browsing, searching, favoriting, adding, editing, viewing, and deleting contacts. The main runtime flow is browser entry → routed app/auth gate → dashboard or authentication pages; the dashboard uses an Axios client to access the remote API. Authentication has a separate service that checks or creates users and persists the signed-in session locally. The README is only a Vite template and documents no additional product features. Some dashboard wiring is excerpted, so edges reflect only shown calls and imports.
Main entry points: App.jsx Contact dashboard · authContext.jsx Auth session · main.jsx React entry · ProtectedRoute.jsx Protected route
Components 17
Application and contacts
- React entry
src/main.jsx - App and routes
src/App.jsx - Contact dashboard
src/App.jsx - Contact card
src/components/ContactCard.jsx - Delete dialog
src/components/ContactDelete.jsx - Load-more control
src/components/PaginationLoader.jsx - Contact form
src/App.jsx - Contact details
src/App.jsx - Reusable form
src/components/ContactForm.jsx
Authentication
- Protected route
src/routes/ProtectedRoute.jsx - Auth session
src/context/authContext.jsx - Login page
src/pages/Login.jsx - Registration page
src/pages/Register.jsx - Auth service
src/services/authService.js
Remote services
- API client
src/services/api.js - Remote REST API
Other components
- User
Connections 19
- User → React entry: opens app
src/main.jsx - React entry → App and routes: renders
src/main.jsx - App and routes → Protected route: routes through
src/App.jsx - Protected route → Auth session: checks session
src/routes/ProtectedRoute.jsx - App and routes → Auth session: provides session
src/App.jsx - App and routes → Login page: routes to
src/App.jsx - App and routes → Registration page: routes to
src/App.jsx - App and routes → Contact dashboard: routes to
src/App.jsx - Login page → Auth session: calls login
src/pages/Login.jsx - Registration page → Auth session: calls register
src/pages/Register.jsx - Auth session → Auth service: calls auth methods
src/context/authContext.jsx - Auth service → Remote REST API: reads and creates users
src/services/authService.js - Contact dashboard → API client: calls contact API
src/App.jsx - API client → Remote REST API: sends HTTP requests
src/services/api.js - Contact dashboard → Contact card: renders contacts
src/App.jsx - Contact dashboard → Load-more control: renders control
src/App.jsx - Contact dashboard → Delete dialog: uses dialog
src/App.jsx - Contact dashboard → Contact form: handles add and edit
src/App.jsx - Contact dashboard → Contact details: handles detail view
src/App.jsx