Frontend application for the portfolio website, built with React and Vite.
- React 18
- Vite 5
- React Router
- Axios
- React Query
- Tailwind CSS
- Framer Motion
portfolio-frontend/
public/
src/
assets/
css/
image/
components/
services/
api.js
App.jsx
main.jsx
index.html
package.json
vercel.json
- Node.js 18+
- npm 9+
- Open the frontend folder:
cd portfolio-frontend- Install dependencies:
npm install- Create a
.envfile:
VITE_API_URL=http://127.0.0.1:8000/apiVITE_API_URL is optional. If it is not set, the app defaults to http://127.0.0.1:8000/api.
- Start development server:
npm run devThe app will run on the local Vite URL shown in the terminal (usually http://localhost:5173).
npm run dev: Start Vite development servernpm run build: Build production files todist/npm run preview: Preview production build locallynpm run lint: Run ESLint checksnpm run format: Formatsrc/**/*.jsandsrc/**/*.jsxwith Prettiernpm run test: Run tests with Vitest
API calls are defined in src/services/api.js.
Expected backend base URL:
- Local:
http://127.0.0.1:8000/api
Example endpoints consumed by the frontend:
/profile//projects//tools//experiences//education//services//testimonials//certifications//contact/
This project is configured for Vercel using vercel.json:
- Build command:
npm run build - Output directory:
dist - Framework:
vite
For SPA routing, all routes are rewritten to index.html.