- Install Vercel CLI:
npm i -g vercel- Navigate to this folder:
cd /path/to/vercel-deploy- Deploy:
vercel- Follow prompts:
- Login to Vercel
- Select "Deploy"
- Done! Your site will be live
- Create a new GitHub repo
- Push these files to the repo:
git init
git add .
git commit -m "Initial commit"
git remote add origin YOUR_REPO_URL
git push -u origin main- Go to vercel.com
- Click "New Project"
- Import your GitHub repo
- Vercel auto-detects settings
- Click "Deploy"
- Zip this folder
- Go to vercel.com
- Click "Add New..." → "Project"
- Drag & drop the zip file
- Click "Deploy"
If you need to add API keys as environment variables in Vercel:
- Go to your project dashboard
- Settings → Environment Variables
- Add:
CMC_API_KEYCOINGECKO_API_KEYOPENSEA_API_KEYMORALIS_API_KEY
Then update server.js to use process.env.CMC_API_KEY instead of hardcoded values.
Puppeteer (for PNG generation) might not work on Vercel's free tier due to memory/execution limits. If image generation fails:
- Use Vercel Pro (supports Puppeteer)
- Or use alternative: html2canvas (client-side) or external service
server.js- Backend APIindex.html- Frontend dashboardvercel.json- Vercel configurationpackage.json- Dependencies