T Farhat Portfolio
This is a modern, responsive portfolio website for Tayyaba Farhat, a Ph.D. Scholar and Incubation Manager, built with React, Vite, and Tailwind CSS. ð Getting Started Prerequisites Make sure you
About the Project
This is a modern, responsive portfolio website for Tayyaba Farhat, a Ph.D. Scholar and Incubation Manager, built with React, Vite, and Tailwind CSS.
ð Getting Started
Prerequisites
Make sure you have Node.js installed on your machine.
Installation
-
Clone the repository (if you haven't already):
git clone https://github.com/TayyabaFarhat/tayyaba-portfolio.git cd tayyaba-portfolio -
Install dependencies:
npm install
Running Locally
To start the development server:
npm run dev
The application will typically run at http://localhost:5173.
ð How to Deploy to GitHub Pages
Follow these steps to make your portfolio live on GitHub Pages.
1. Create a GitHub Repository
If you haven't already, create a new public repository on GitHub (e.g., tayyaba-portfolio).
2. Connect Your Local Project
Run these commands in your project terminal:
git init git add . git commit -m "Initial commit" git branch -M main git remote add origin https://github.com/TayyabaFarhat/tayyaba-portfolio.git git push -u origin main
3. Install gh-pages
We will use a package to handle the deployment automatically.
npm install gh-pages --save-dev
4. Update vite.config.js
Open vite.config.js and add the base property with your repository name.
import { defineConfig } from "vite"; import react from "@vitejs/plugin-react"; // ... other imports export default defineConfig({ plugins: [react(), ...], base: "/tayyaba-portfolio/", // <--- ADD THIS LINE (e.g., "/tayyaba-portfolio/") resolve: { // ... }, });
5. Update package.json
Open package.json and add these two items:
-
Add
homepageat the top level:"homepage": "https://TayyabaFarhat.github.io/tayyaba-portfolio", -
Add
predeployanddeployscripts under"scripts":"scripts": { "dev": "vite", "build": "vite build", // ... "predeploy": "npm run build", "deploy": "gh-pages -d dist" }
6. Deploy!
Now, simply run:
npm run deploy
This command will build your project and push existing files to a gh-pages branch on your GitHub repository.
7. Configure GitHub
- Go to your repository on GitHub.
- Click on Settings > Pages (on the left sidebar).
- Ensure the Source is set to
Deploy from a branch. - Ensure the Branch is set to
gh-pages//root. - Your site should be live in a few minutes!
ð ï¸ Built With
Project Timeline
Technologies
External Links
Related Projects
Projects built with similar technologies.
Online Html Editor And Viewer
The Online HTML Editor and Viewer is a simple web application built with Flask that allows users to write and preview HTML code in real-time.
Qrgen
A premium, feature-rich QR Code Generator engineered with Python (Flask) and a pristine Glassmorphism frontend.
Examina Ai
Using AI, It transforms raw study materials into structured, verified examination sets with support for institutional export formats like Moodle XML.