Loading repository dataβ¦
Loading repository dataβ¦
AkshayMundra19 / repository
Hey, I'm Akshay π β a Python Developer & AI Enthusiast from Jaipur, crafting smart digital experiences. This is my personal portfolio built with React, PHP & MySQL β featuring projects like EduBridge, BlockTrip, and HomeValuate AI
A production-ready, highly-optimized developer portfolio website built using a React (Vite) frontend, a secure PHP REST API, and a multi-tenant-ready MySQL database schema.
user_id foreign key)index.php) pre-renders metadata tags, canonical records, JSON-LD schema, and semantic text content before React loads/
βββ api/
β βββ admin/
β β βββ login.php
β β βββ messages.php
β βββ config.php
β βββ portfolio.php
β βββ github-projects.php
β βββ github-stats.php
β βββ contact.php
β βββ resume.php
βββ uploads/
β βββ profile-photo.jpg (WebP compressed)
β βββ resume.pdf
β βββ projects/
β βββ edubridge.jpg
β βββ blocktrip.jpg
β βββ homevaluate.jpg
βββ database/
β βββ schema.sql
β βββ seed.sql
βββ public/
β βββ robots.txt
β βββ sitemap.xml
β βββ llms.txt
βββ src/
β βββ components/ # Navbar, Hero, About, Projects, etc.
β βββ context/ # PortfolioContext.jsx
β βββ hooks/ # usePortfolioData.js, useGithubData.js
β βββ App.jsx
β βββ index.css
β βββ main.jsx
βββ index.php # Pre-rendering shell (SSR)
βββ package.json
βββ vite.config.js
CREATE DATABASE portfolio_db;
mysql -u root -p portfolio_db < database/schema.sql
mysql -u root -p portfolio_db < database/seed.sql
Open /api/config.php and configure your database host, database name, username, and password if they differ from standard:
define('DB_HOST', getenv('DB_HOST') ?: 'localhost');
define('DB_NAME', getenv('DB_NAME') ?: 'portfolio_db');
define('DB_USER', getenv('DB_USER') ?: 'root');
define('DB_PASS', getenv('DB_PASS') !== false ? getenv('DB_PASS') : '');
To serve the API endpoints locally, start the built-in PHP development server at the root directory of the project:
php -S localhost:8000
This routes all /api/* and resource queries correctly. Vite's local dev server is configured to proxy /api calls directly to this instance.
npm install
npm run dev
/api/ and /uploads/ folders to your PHP hosting provider (e.g., Hostinger, Railway, cPanel shared hosting)./api/config.php (preferably using Environment Variables like DB_HOST, DB_NAME, DB_USER, DB_PASS).npm run build
postbuild script automatically renames dist/index.html to dist/index.php. This allows search engines to index pre-rendered server contents directly from index.php.VITE_API_URL environment variable to point to your deployed PHP API root domain (e.g., https://api.akshaymundra.dev).dist/ and index.php directly to your production root server.