# Frontend - Git Push Guide

## 📦 What's Included

This frontend project contains:
- ✅ `README.md` - Project documentation
- ✅ `.cursorrules` - AI coding standards
- ✅ `.gitignore` - Protects secrets
- ✅ `.env.example` - Environment variables template
- ✅ Source code (`src/`, `app/`)
- ✅ Package config (`package.json`, `next.config.mjs`, etc.)

## 🚀 Push to Git

```bash
cd /Users/mtpl27/Desktop/DeployHub/frontend

git init
git remote add origin <YOUR_FRONTEND_GIT_URL>
git add .
git commit -m "Initial commit: Next.js user frontend with Google OAuth"
git push -u origin main
```

## 🔍 Verify Before Pushing

```bash
git status
git diff --cached  # After git add
```

## 🔐 After Cloning on New Machine

```bash
git clone <YOUR_FRONTEND_GIT_URL>
cd frontend

# Setup environment
cp .env.example .env.local
# Edit .env.local with API URLs

# Install and run
npm install
npm run dev  # Development
npm run build && npm run start  # Production
```

## ✅ Protected Files (Won't Be Pushed)

- ❌ `.env.local` - Contains environment config
- ❌ `node_modules/` - Dependencies
- ❌ `.next/` - Build output

These are in `.gitignore` and safe from being pushed.
