How dcr-dev-lab/portfolio-f works
This is a React portfolio frontend with public profile, project, skills, contact, and policy pages plus a token-protected admin area for editing portfolio content. The main visitor workflow routes to public pages, which present profile sections and fetch profile, project, and skill data; administrators authenticate and manage profile, projects, and skills through the backend API. The graph includes the shared routing and API layers. Several UI and admin implementation files were not excerpted, so their internal behavior is represented only where the source index or README supports it.
Main entry points: AppRoutes.jsx Route map · api.js HTTP client · Home.jsx Home page · profile.service.js Profile service
Components 27
App and routing
- App shell
src/App.jsx - Route map
src/routes/AppRoutes.jsx - Protected routes
src/routes/ProtectedRoute.jsx
Public portfolio
- Home page
src/pages/public/Home.jsx - Profile sections
src/components/profile - Projects page
src/pages/public/Projects.jsx - Skills page
src/pages/public/Skills.jsx - Contact page
src/pages/public/Contact.jsx - Policy pages
src/pages/public - Navigation
src/components/common/Navbar.jsx - Footer
src/components/common/Footer.jsx - Project cards
src/components/cards - Skill cards
src/components/cards/skill/SkillCard.jsx
Admin management
- Admin login
src/pages/admin/AdminLogin.jsx - Admin dashboard
src/pages/admin/Dashboard.jsx - Project management
src/pages/admin/projects/ManageProjects.jsx - Project forms and list
src/pages/admin/projects - Skill management
src/pages/admin/skills/ManageSkills.jsx - Skill forms and list
src/pages/admin/skills - Profile editor
src/pages/admin/AdminProfile.jsx
API and services
- HTTP client
src/services/api.js - Profile service
src/services/profile.service.js - Project service
src/services/project.service.js - Skill service
src/services/skill.service.js
Other components
- Visitor
- Administrator
- Backend API
Connections 36
- Visitor → Route map: opens pages
src/routes/AppRoutes.jsx - Administrator → Route map: opens admin
src/routes/AppRoutes.jsx - App shell → Route map: renders
src/App.jsx - Route map → Home page: routes to
src/routes/AppRoutes.jsx - Route map → Projects page: routes to
src/routes/AppRoutes.jsx - Route map → Skills page: routes to
src/routes/AppRoutes.jsx - Route map → Contact page: routes to
src/routes/AppRoutes.jsx - Route map → Policy pages: routes to
src/routes/AppRoutes.jsx - Route map → Admin login: routes to
src/routes/AppRoutes.jsx - Route map → Protected routes: protects
src/routes/AppRoutes.jsx - Route map → Admin dashboard: routes to
src/routes/AppRoutes.jsx - Route map → Project management: routes to
src/routes/AppRoutes.jsx - Route map → Skill management: routes to
src/routes/AppRoutes.jsx - Route map → Profile editor: routes to
src/routes/AppRoutes.jsx - Home page → Profile sections: renders
src/pages/public/Home.jsx - Home page → Profile service: fetches profile
src/pages/public/Home.jsx - Home page → Project service: fetches projects
src/pages/public/Home.jsx - Home page → Skill service: fetches skills
src/pages/public/Home.jsx - Projects page → Project service: fetches projects
src/pages/public/Projects.jsx - Projects page → Project cards: renders
src/pages/public/Projects.jsx - Skills page → Skill service: fetches skills
src/pages/public/Skills.jsx - Skills page → Skill cards: renders
src/pages/public/Skills.jsx - Contact page → Profile service: fetches profile
src/pages/public/Contact.jsx - Footer → Profile service: fetches profile
src/components/common/Footer.jsx - Project management → Project forms and list: uses forms
src/pages/admin/projects/ManageProjects.jsx - Skill management → Skill forms and list: uses forms
src/pages/admin/skills/ManageSkills.jsx - Admin login → HTTP client: calls
src/pages/admin/AdminLogin.jsx - Profile editor → HTTP client: calls
src/pages/admin/AdminProfile.jsx - Project forms and list → HTTP client: calls
src/pages/admin/projects/AddProject.jsx - Project forms and list → HTTP client: calls
src/pages/admin/projects/EditProject.jsx - Skill forms and list → HTTP client: calls
src/pages/admin/skills/AddSkill.jsx - Skill forms and list → HTTP client: calls
src/pages/admin/skills/EditSkill.jsx - Profile service → HTTP client: uses
src/services/profile.service.js - Project service → HTTP client: uses
src/services/project.service.js - Skill service → HTTP client: uses
src/services/skill.service.js - HTTP client → Backend API: sends requests
README.md