All user-facing text content is stored in JSON files located in the src/content/ directory. You can easily customize the portfolio by editing these files without touching any React code.
src/content/site.json- Global navigation labels (About, Experience, Skills, Contact)src/content/home.json- Personal information, contact details, social links, and overview textsrc/content/experience.json- Experience section headingsrc/content/skills.json- Skills section headingssrc/content/contact.json- Contact form labels and messages
- Navigate to the
src/content/directory - Open the relevant JSON file for the section you want to edit
- Modify the text values (keep the JSON structure intact)
- Save the file
- The changes will appear automatically in development mode, or rebuild for production
To change your name, edit src/content/home.json:
{
"firstName": "YourFirstName",
"lastName": "YourLastName",
...
}In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.\
Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
Builds the app and deploys it to GitHub Pages using the gh-pages branch method.
This portfolio is automatically deployed to GitHub Pages when changes are pushed to the main branch using GitHub Actions. The deployment workflow:
- Builds the React application
- Creates a deployment artifact
- Deploys directly to GitHub Pages using GitHub Actions
Why GitHub Actions Workflow? The deployment uses GitHub Actions (modern approach) instead of the legacy gh-pages branch method because it provides:
- Better CI/CD integration with automatic deployments on every push
- Built-in security with GitHub's deployment environments
- More control over the build and deployment process
- Appears in the "Deployments" section of the GitHub repository
Configuration: The workflow automatically enables GitHub Pages if not already configured. No manual setup is required in repository settings.
Currently Deployed on - https://svmgarg.github.io/portfolio/
This project includes security measures to minimize vulnerabilities:
- Dependency Overrides: The
package.jsonincludes overrides fornth-checkandpostcssto use patched versions that fix known security vulnerabilities - Regular Updates: Dependencies are regularly audited using
npm audit - Development-Only Vulnerabilities: The remaining 2 moderate severity issues in
webpack-dev-serveronly affect the development server and do not impact the production build
To check for security vulnerabilities, run:
npm audit