Simplified, bulletproof app deployment to GCP Cloud Run.
✅ Zero manual intervention - deploys work first time
✅ Shared infrastructure - one Cloud SQL, one LB
✅ Locked tech stack - Node.js + React (no choices = no errors)
✅ Simple workflows - 30 lines instead of 200
✅ Clear DNS instructions - no confusion
Business User (Cursor)
↓
MCP Tool
↓
Portal API → Generates Code
↓
GitHub Push → Auto Deploy
↓
Cloud Run (with shared DB, LB, SSL)
↓
https://app-name.futurex.sa
# 1. Clone repo
git clone https://github.com/nelc/appfactory-v2.git
cd appfactory-v2
# 2. Create shared infrastructure
cd setup
chmod +x *.sh
./create-shared-infrastructure.sh
# 3. Deploy portal
cd ../portal
gcloud run deploy appfactory-v2-portal \
--source . \
--region me-central2 \
--allow-unauthenticatedSee SETUP.md for detailed instructions.
-
Install MCP tool in Cursor
npm install -g git+https://github.com/nelc/appfactory-v2-mcp.git
MCP Repository: https://github.com/nelc/appfactory-v2-mcp
-
Use in Cursor
"Generate my Customer Tracker app using App Factory tool" -
Push to GitHub
- Code auto-deploys
- Add DNS record (instructions in workflow output)
- App live at
https://app-name.futurex.sa
See USER_GUIDE.md for step-by-step guide.
| Aspect | V1 (Complex) | V2 (Simple) |
|---|---|---|
| Cloud SQL | Multiple instances, Shared VPC issues | ONE shared instance, private IP |
| Load Balancer | Created per-app (error-prone) | ONE shared, apps just added |
| Tech Stack | User choice (Python/Go/etc) | Locked (Node + React) |
| Workflow | 200 lines bash | 30 lines YAML |
| Success Rate | ~50% | ~100% |
| Deploy Time | 2+ hours (with fixes) | 5 minutes |
appfactory-v2/ (PRIVATE)
├── portal/ # Self-service portal with fixed prompt
├── setup/ # One-time infrastructure scripts
├── scripts/ # Used by app deployments
└── docs/ # Documentation
appfactory-v2-mcp/ (PUBLIC - separate repo)
├── server.js # MCP server
├── package.json
└── README.md
- SETUP.md - Admin setup guide
- USER_GUIDE.md - Business user guide
- ARCHITECTURE.md - Technical details
Issues with:
- Infrastructure setup: Check SETUP.md
- App deployment: Check USER_GUIDE.md
- DNS configuration: See workflow output for exact instructions
Internal use only - NELC