-
Create a new repository on GitHub
- Go to https://github.com/new
- Name it something like
archwest-loan-api - Make it private if needed
- Don't initialize with README (we already have one)
-
Push this code
# Add your GitHub repo as origin git remote add origin https://github.com/YOUR_USERNAME/archwest-loan-api.git # Push to GitHub git branch -M main git push -u origin main
# Clone the repo
git clone https://github.com/YOUR_USERNAME/archwest-loan-api.git
cd archwest-loan-api
# Install dependencies
npm install
# Run the server
npm start
# Test it
curl http://localhost:3000/health- Push to GitHub first
- Go to https://render.com
- New > Web Service
- Connect your GitHub repo
- Use these settings:
- Build Command:
npm install - Start Command:
npm start
- Build Command:
- Deploy! You'll get a URL like
https://archwest-api.onrender.com
npm install -g @railway/cli
railway login
railway init
railway upheroku create your-app-name
git push heroku mainYour voice agent should make POST requests to:
https://your-deployed-url/api/loan-details
With this JSON structure:
{
"productKey": "FNF",
"data": {
"propertyState": "CA",
"purchasePrice": 2700000,
"afterRepairPropertyAmount": 7000000,
"rehabBudget": 310000,
"propertyValue": 2700000,
"requestedAmount": 2700000,
"borrowerFico": 740,
"borrowerExperienceMonths": 84,
"borrowerExperienceDeals": 7,
"loanPurpose": "purchase"
}
}server.js- Main API serverarchwest_fnf_database.json- Complete pricing database (576 scenarios)README.md- API documentationdeployment.md- Deployment options*.csv- Original Excel data (for reference)