Vite React SPA
https://github.com/heythisischris/heythisischris-web.git
A modern React portfolio website showcasing projects, posts, and professional experience.
# Clone the repository
git clone https://github.com/heythisischris/heythisischris-web.git
cd heythisischris-web
# Install dependencies
yarn install
# Start development server (staging mode)
yarn start:staging
# Start development server (production mode)
yarn start:prod
The app will be available at http://localhost:5173
# Build for staging
yarn build:staging
# Build for production
yarn build:prod
# Build both environments
yarn build
src/
โโโ components/ # Reusable UI components
โโโ routes/ # Page components
โโโ utils/ # Helper functions and hooks
โโโ App.tsx # Main application setup
Create .env.production and .env.staging files:
VITE_USERPOOLID=your_cognito_user_pool_id
VITE_USERPOOLWEBCLIENTID=your_cognito_client_id
VITE_GRAPHQL_URL=your_graphql_endpoint
VITE_API_URL=your_api_endpoint
VITE_POSTHOG_KEY=your_posthog_key
The project uses AWS S3 + CloudFront for hosting with automated deployment scripts.