How harwinder33singh/my-portfolio works
Project type and purpose
• This is a single-page React portfolio application built with Vite. Its goal is to present a developer’s personal projects, timeline, and contact info via a modern component-based UI.
File structure
• Top-level:
• README.md – project title (“my-portfolio”)
• index.html – SPA entry point
• package.json / package-lock.json – dependencies (React, Vite, etc.)
• vite.config.js / eslint.config.js – build and lint config
• public/ – static assets served as-is (favicon, robots.txt, etc.)
• src/ – application source
• main.jsx – Vite’s client entrypoint that bootstraps React into index.html
• App.jsx + App.css – root component and global styles
• assets/ – images, fonts and other imported media
• components/ – reusable UI pieces (e.g. HomeTimeline)
• pages/ – route-level React components (Home, Contact, Projects), with subfolders per project (MarsField, SeeMe)
• index.css & per-page CSS – styling layers
README
a. Main components
• Developer machine / IDE
• Build system: Vite (dev server + production bundler)
• Source code modules (src/main.jsx → App → pages & components & assets)
• Static file host (Netlify, Vercel, GitHub Pages, or any static-site CDN)
• Client (web browser with React Router handling in-app navigation)
b. Relationships and interactions
1. Developer writes code in src/**/*
2. Vite dev server serves index.html + HMR JS bundles → Browser
3. For production, Vite bundles JS/CSS assets → “dist/”
4. Static host serves index.html + bundled assets
5. Client requests index.html, loads main.js, mounts React App
6. React Router within App.jsx intercepts URL changes → renders pages/components
c. Architectural patterns & principles
• Component-based UI (React)
• Single-page application with client-side routing
• Separation of concerns: pages vs. small reusable components vs. global assets
• Dev/Prod pipeline: Vite for fast dev feedback loops + production bundling
d. Key technologies & libraries
• Vite (dev server + Rollup-based bundler)
• React (JSX, component model)
• CSS modules or scoped CSS files per component/page
• (Implicit) React Router or similar for client routing