A free, AI-powered site that generates cover letters and resume summaries. Monetized via Google AdSense. No user accounts or subscriptions.
- Next.js 14 (App Router)
- Tailwind CSS + shadcn/ui
- OpenAI GPT-4o-mini — fast, cheap AI generation
- Upstash Redis — IP-based rate limiting (5/day per IP)
- Google AdSense — passive ad revenue
- Vercel — hosting (free tier)
cp .env.local.example .env.local| Variable | Where to get it |
|---|---|
OPENAI_API_KEY |
https://platform.openai.com/api-keys |
UPSTASH_REDIS_REST_URL |
https://console.upstash.com -> Create Redis DB -> REST API tab |
UPSTASH_REDIS_REST_TOKEN |
Same page as above |
NEXT_PUBLIC_ADSENSE_PUBLISHER_ID |
Apply at https://adsense.google.com after site is live |
Note: Upstash vars are optional for local dev. If not set, rate limiting is disabled.
npm run devAdSense ads will NOT load on localhost — that is expected. You will see a dashed placeholder box where ads will appear in production.
- Deploy the site to Vercel first (site must be live with real content)
- Apply at https://adsense.google.com using your Google account
- Enter your live site URL when prompted
- Wait for approval — typically 1 to 7 days
- Once approved, go to AdSense -> Ads -> By ad unit -> Display ads -> Create new
- Copy your Publisher ID (ca-pub-XXXXXXXXXXXXXXXXX)
- Copy each Ad unit slot ID (10-digit number)
- Add to Vercel environment variables:
- NEXT_PUBLIC_ADSENSE_PUBLISHER_ID = ca-pub-XXXXXXXXXXXXXXXXX
- Replace placeholder slot IDs in app/page.tsx and app/generate/page.tsx:
- Redeploy — ads will start showing automatically
- Push this repo to GitHub
- Go to https://vercel.com -> New Project -> Import your repo
- Add environment variables in Vercel dashboard:
- OPENAI_API_KEY
- UPSTASH_REDIS_REST_URL
- UPSTASH_REDIS_REST_TOKEN
- NEXT_PUBLIC_ADSENSE_PUBLISHER_ID (add after AdSense approval)
- Click Deploy
- Free tier at https://upstash.com — 10,000 requests/day
- Rate limit: 5 generations per IP per day
- Keys auto-expire after 24 hours (sliding window)
- To reset an IP during testing: go to Upstash dashboard -> Data Browser -> delete the key craftcv:ratelimit:{ip}
| Service | Cost |
|---|---|
| Vercel (hosting) | Free |
| Upstash Redis | Free tier |
| OpenAI GPT-4o-mini | |
| Total | ~$5-20/month |