How itzv07/venkatesherla-portfolio works
Purpose and entry points
This is a TypeScript personal portfolio SPA with an Express backend for AI recruiter chat and contact delivery. Browser bootstrapping flows from index.html to index.tsx, which mounts App.tsx. The server entry point is server.ts; frontend build/runtime configuration is in vite.config.ts.
Application composition
App.tsx is the page-level orchestrator, assembling the portfolio sections, global UI state, and interactive overlays. Primary content is componentized by professional-profile domain:
• Navigation and introduction: src/components/Navbar.tsx, src/components/Hero.tsx
• Portfolio narrative and credentials: src/components/About.tsx, src/components/Experience.tsx, src/components/Skills.tsx
• Work and accomplishments: src/components/Projects.tsx, src/components/Certifications.tsx, src/components/Achievements.tsx
• Career actions: src/components/ContactSection.tsx, src/components/ResumeModal.tsx
Content model boundary
Portfolio facts, such as skills, projects, experience, certifications, and achievements, are centralized as frontend data in src/data/portfolioData.ts, with shared shape definitions in src/types.ts. Display components should consume this model rather than duplicating profile content, separating editorial updates from presentation.
Interaction and navigation layer
The site offers non-content interaction systems beyond scrolling: command-based navigation, resume access, theme/UI effects, and sound feedback. The principal boundaries are src/components/CommandPalette.tsx, src/components/ResumeModal.tsx, and src/utils/sound.ts. Visual behavior is implemented client-side through src/components/BackgroundEffect.tsx, src/components/CustomCursor.tsx, and src/components/ScrollProgressBar.tsx.
Recruiter AI flow
src/components/AIRecruiterChatbot.tsx collects conversational recruiter queries and posts them to the backend’s /api/recruiter-chat endpoint. server.ts owns API routing and keeps provider credentials server-side; services/gemini.ts is the Gemini integration boundary. The external dependency is Google Gemini through @google/genai, authenticated with GEMINI_API_KEY; the browser should not call Gemini directly.
Contact and service integration
The contact UI in src/components/ContactSection.tsx submits to /api/contact managed by server.ts. The backend is responsible for email transport and credentials, using configured SMTP/Gmail values such as SMTP_USER and SMTP_PASS. Environment-secret placeholders belong in .env.example; deployment must inject actual values.
Runtime and deployment shape
The frontend runs as a React 19/Vite application with global styling in index.css. The backend is Node.js with Express 5 and TypeScript, exposing health, chat, and contact API endpoints from server.ts. Development uses Vite-oriented scripts, while production builds the client and starts the Express process; package/runtime declarations are in package.json and tsconfig.json.
Main entry points: App.tsx App · server.ts Express API server · index.tsx React bootstrap · package.json Package runtime
Components 19
React/Vite Client
Browser SPA and interactive portfolio UI.
- HTML entry
index.html - React bootstrap
index.tsx - App · Assembles sections, global state, and overlays.
App.tsx - Portfolio sections · Navigation, intro, narrative, work, and credentials.
- Contact section
src/components/ContactSection.tsx - AI recruiter chatbot
src/components/AIRecruiterChatbot.tsx - Command palette
src/components/CommandPalette.tsx - Resume modal
src/components/ResumeModal.tsx - Visual effects · Background, cursor, scroll progress, and sound feedback.
- Portfolio data · Centralized profile facts for display components.
src/data/portfolioData.ts - Shared types
src/types.ts - Global styles
index.css - Vite configuration
vite.config.ts
Express Backend
Server-side API and secret-bearing integrations.
- Express API server · Exposes health, recruiter chat, and contact endpoints.
server.ts - Gemini service · Keeps Gemini credentials and calls server-side.
services/gemini.ts - Environment secrets · Deployment injects Gemini and SMTP credentials.
.env.example
External Services
- Google Gemini
- SMTP/Gmail
Other components
- Package runtime
package.json
Connections 21
- HTML entry → React bootstrap: loads
- React bootstrap → App: mounts
- React bootstrap → Global styles: imports
- App → Portfolio sections: composes
- App → Contact section: renders
- App → AI recruiter chatbot: renders
- App → Command palette: hosts
- App → Resume modal: hosts
- App → Visual effects: enables
- Portfolio sections → Portfolio data: reads profile facts
- Portfolio data → Shared types: uses shapes
- Command palette → Resume modal: opens
- AI recruiter chatbot → Express API server: POST /api/recruiter-chat
- Contact section → Express API server: POST /api/contact
- Express API server → Gemini service: routes chat
- Gemini service → Google Gemini: calls @google/genai
- Express API server → SMTP/Gmail: sends contact email
- Express API server → Environment secrets: reads credentials
- Vite configuration → React bootstrap: serves/builds
- Package runtime → Vite configuration: runs client scripts
- Package runtime → Express API server: starts production server