How sumanthgupta11/my-portfolio works
This is a portfolio website with a React frontend and an Express API for project listings and contact submissions. Visitors browse profile, experience, projects, and resume content, then can submit a contact message; project data is fetched from the API. The README describes MongoDB, but the sampled database implementation creates MySQL tables and uses mysql2, so the graph reflects that implementation. Some UI and utility files were not sampled; their subsystem roles follow the README and file tree, and uncertain links are omitted or marked optional.
Main entry points: Home.jsx Home page · api.js API client · db.js Database setup and mapping · Reveal.jsx Scroll reveal
Components 21
Portfolio frontend
- App shell
client/src/App.jsx - Home page
client/src/pages/Home.jsx - Navigation
client/src/components/Navbar.jsx - Hero section
client/src/components/Hero.jsx - Profile section
client/src/components/Profile.jsx - Experience section
client/src/components/Experience.jsx - Project cards
client/src/components/ProjectCard.jsx - Resume section
client/src/components/Resume.jsx - Resume PDF
client/public/resume.pdf - Contact form
client/src/components/ContactForm.jsx - Scroll reveal
client/src/components/Reveal.jsx - API client
client/src/api/api.js
HTTP API
- Express server
server/server.js - Project routes
server/routes/projects.js - Contact routes
server/routes/contact.js
Portfolio data
- Project operations
server/controllers/projectController.js - Message operations
server/controllers/contactController.js - Database setup and mapping
server/utils/db.js
External services
- MySQL database
- Email notification
server/utils/mailer.js
Other components
- Visitor
Connections 27
- Visitor → App shell: opens site
- App shell → Navigation: renders
client/src/App.jsx - App shell → Home page: routes to
client/src/App.jsx - Home page → Hero section: renders
client/src/pages/Home.jsx - Home page → Profile section: renders
client/src/pages/Home.jsx - Home page → Experience section: renders
client/src/pages/Home.jsx - Home page → Project cards: renders
client/src/pages/Home.jsx - Home page → Resume section: renders
client/src/pages/Home.jsx - Home page → Contact form: renders
client/src/pages/Home.jsx - Home page → Scroll reveal: renders
client/src/pages/Home.jsx - Profile section → Scroll reveal: wraps content
client/src/components/Profile.jsx - Experience section → Scroll reveal: wraps content
client/src/components/Experience.jsx - Resume section → Scroll reveal: wraps content
client/src/components/Resume.jsx - Resume section → Resume PDF: links to
README.md - Home page → API client: requests projects
client/src/pages/Home.jsx - Contact form → API client: submits message
client/src/components/ContactForm.jsx - API client → Project routes: GET projects
README.md - API client → Contact routes: POST contact
client/src/api/api.js - Express server → Project routes: mounts route
server/server.js - Express server → Contact routes: mounts route
server/server.js - Project routes → Project operations: dispatches
server/routes/projects.js - Contact routes → Message operations: dispatches
server/routes/contact.js - Project operations → Database setup and mapping: queries and maps
server/controllers/projectController.js - Message operations → Database setup and mapping: stores and lists
server/controllers/contactController.js - Express server → Database setup and mapping: initializes
server/server.js - Database setup and mapping → MySQL database: creates tables and queries
server/utils/db.js - Message operations → Email notification: may notify
README.md