This guide provides automated scripts to set up your JobConnect application on Vercel with all required environment variables.
# Run this command in PowerShell (as Administrator)
.\setup-vercel-env.ps1# Run this command in your terminal
node setup-vercel-env.js- Install Vercel CLI (if not already installed)
- Authenticate with Vercel (opens browser for login)
- Set Environment Variables:
MONGODB_URI- MongoDB Atlas connectionJWT_SECRET- Secure authentication tokenJWT_EXPIRE- Token expiration timeNODE_ENV- Production environmentCLIENT_URL- Frontend URLAPI_BASE_URL- Backend API URLPORT- Server port
- Trigger Production Deployment
- Provide Status Updates
After running the script:
- ✅ All environment variables configured in Vercel
- ✅ Production deployment triggered automatically
- ✅ Application live at: https://jobcon-six.vercel.app
- ✅ Full functionality: authentication, job management, database connection
If you prefer to verify manually:
- Go to Vercel Dashboard
- Select your
jobcon-sixproject - Navigate to Settings → Environment Variables
- Verify all variables are present
- Go to Deployments and trigger a redeploy if needed
- Ensure you have Node.js installed
- Run PowerShell as Administrator
- Check internet connection
- Make sure you're logged into the correct Vercel account
- Try
vercel logoutthen run the script again
- Manually add them in Vercel Dashboard
- Use the values from the
.envfile in this directory
- Wait 2-3 minutes for deployment to complete
- Check Vercel deployment logs for errors
- Verify MongoDB Atlas connection string is correct
If you encounter issues:
- Check the Vercel deployment logs
- Verify all environment variables are set correctly
- Ensure MongoDB Atlas cluster is accessible
- Contact support with specific error messages
🎉 Your JobConnect application should be fully functional after running these scripts!