Your code is now ready to upload to GitHub. Follow these steps:
# Install GitHub CLI from: https://cli.github.com/
# Then run:
gh auth login
gh repo create loan-easy --public --source=. --remote=origin
git push -u origin master-
Create Repository on GitHub:
- Go to: https://github.com/new
- Repository name:
loan-easy - Description:
AI-Powered Loan Approval System with Document Verification - Make it Public
- DON'T initialize with README
- Click "Create repository"
-
Push Your Code:
git remote add origin https://github.com/YOUR_USERNAME/loan-easy.git git branch -M main git push -u origin main
- Go to: https://vercel.com/signup
- Sign up/Login with GitHub account
- Click "Add New..." → "Project"
- Import Git Repository
- Select loan-easy repository
- Click "Import"
- Configure:
- Framework Preset: Other
- Build Command: (leave empty)
- Output Directory: (leave empty)
- Install Command:
pip install -r requirements.txt
- Click "Deploy"
- Wait 2-3 minutes ⏳
- Get your live URL:
https://loan-easy-xyz.vercel.app🎉
# Install Vercel CLI
npm install -g vercel
# Login
vercel login
# Deploy
vercel --prodVercel uses serverless functions, so SQLite will reset on each deployment.
- In Vercel Dashboard → Your Project → Storage
- Click "Create Database" → Choose "Postgres"
- Copy connection string
- Add environment variable:
- Name:
DATABASE_URL - Value:
postgresql://...(the connection string)
- Name:
- Go to: https://supabase.com
- Create new project
- Go to Settings → Database → Connection String
- Copy the connection string
- In Vercel: Settings → Environment Variables
- Name:
DATABASE_URL - Value:
postgresql://...
- Name:
# Add at the top with other imports
import os
# Update database URI (around line 15):
app.config['SQLALCHEMY_DATABASE_URI'] = os.environ.get('DATABASE_URL') or 'sqlite:///loaneasy.db'Then commit and push:
git add app_auth.py
git commit -m "Add PostgreSQL support for production"
git push origin main-
Generate a secure secret key:
python -c "import secrets; print(secrets.token_hex(32))"
-
In Vercel Dashboard:
- Go to: Settings → Environment Variables
- Add:
SECRET_KEY=your-generated-key-here
-
Update app_auth.py:
app.config['SECRET_KEY'] = os.environ.get('SECRET_KEY') or 'loaneasy-secret-key-2025-secure'
-
Commit and push:
git add app_auth.py git commit -m "Add secure secret key from environment" git push origin main
After deployment:
- Application loads without errors
- Can register new account
- Can login successfully
- Can create profile
- Verification system works
- Can apply for loan
- Database persists data (if using PostgreSQL)
- All pages accessible
- Responsive design works on mobile
- GitHub Repository:
https://github.com/YOUR_USERNAME/loan-easy - Live Application:
https://loan-easy-xyz.vercel.app
- Visit your Vercel URL
- Register a new account
- Complete profile with:
- PAN: ABCDE1234F
- Aadhar: 123456789012
- Bank IFSC: SBIN0001234
- Account: 12345678901234
- CIBIL: 750
- View verification results
- Apply for loan!
Whenever you make changes:
git add .
git commit -m "Description of changes"
git push origin mainVercel will automatically rebuild and deploy! 🚀
- Check build logs in Vercel dashboard
- Ensure all dependencies in requirements.txt
- Verify Python version in runtime.txt
- SQLite resets on serverless platforms
- Solution: Migrate to PostgreSQL (see above)
- Check Vercel function logs
- Verify model files are in repository
- Check environment variables
- Database might have reset
- Create new account on deployed version
- Use PostgreSQL for persistent data
See the complete guide: DEPLOYMENT_GUIDE.md
Current Status: ✅ Code committed to Git (46 files, 10,813 lines) ✅ Ready to push to GitHub ✅ Ready to deploy to Vercel ✅ Deployment files configured
Next Step: Choose Option A or B above to upload to GitHub! 🚀