A personal portfolio website with a serverless endpoint for my vercel deployment (similar to next.js where each file behaves as an http endpoint)
This project consists of two main parts:
- Frontend: A React application built with Vite and TailwindCSS
- API: A simple serverless function for handling contact form submissions
To run the frontend locally:
cd frontend
npm install
npm run dev
You'll need the Vercel CLI:
npm i -g vercel
vercel dev
This simulates the Vercel environment, allowing you to run serverless functions locally
This project is configured for deployment on Vercel:
- The frontend is built using the Vercel Static Build configuration
- The API contact form is handled by a serverless Node.js function
The following environment variables need to be set in Vercel:
GMAIL_USER
: Gmail address for sending contact form emailsGMAIL_PASS
: App password for Gmail (required if using 2FA)