AndesOps-AI / QUICK_DEPLOY.md
Álvaro Valenzuela Valdes
πŸš€ Production ready for HF Spaces (Security Cleaned)
9e4bb05
# 🎯 Quick Deploy Checklist - AndesOps AI to Hugging Face
**Current Status**: 21 likes πŸŽ‰ | Production Ready βœ…
---
## πŸš€ DO THIS NOW (5 mins each)
### βœ… ACTION 1: Push to GitHub
```bash
cd c:\laragon\www\ANDESAI
git add -A
git commit -m "πŸš€ Production ready for HF Spaces"
git push
```
### βœ… ACTION 2: Create Backend Space
1. Go: https://huggingface.co/spaces
2. Click **"Create new space"**
3. Name: `andesai-backend`
4. SDK: **Docker**
5. License: OpenRAIL
6. Click Create
### βœ… ACTION 3: Upload Backend Files
1. In your new andesai-backend space
2. Click **"Files"** tab
3. Upload folder: `backend/` from your repo
4. (Or use GitHub import if available)
### βœ… ACTION 4: Add Environment Secrets
In andesai-backend space β†’ **Settings β†’ Secrets**:
```
MERCADO_PUBLICO_TICKET = YOUR_TICKET_HERE
GEMINI_API_KEY = YOUR_GEMINI_KEY_HERE
GROQ_API_KEY = YOUR_GROQ_KEY_HERE
FEATHERLESS_API_KEY = YOUR_FEATHERLESS_KEY_HERE
DATABASE_URL = sqlite:///./andesops.db
GEMINI_MODEL = gemini-2.0-flash
```
Click **Save** after each one.
### βœ… ACTION 5: Update Your AndesOps-AI Frontend Space
1. Go: https://huggingface.co/spaces/lablab-ai-amd-developer-hackathon/AndesOps-AI
2. Click **"Files"**
3. Re-upload `frontend/` folder with new Dockerfiles
4. Wait for build to complete (green βœ…)
### βœ… ACTION 6: Test Everything
- Open frontend: https://lablab-ai-amd-developer-hackathon-andesops-ai.hf.space
- Check browser console (F12) for `[API]` logs
- Try "Market Monitor" β†’ should show data
- Try "Tender Search" β†’ should return results
### βœ… ACTION 7: Share & Get Likes
- Update space description (copy from HUGGING_FACE_DEPLOY.md)
- Share on Twitter with #HuggingFace #Hackathon
- Post in hackathon Slack
- Ask friends to like it
---
## πŸ“Š What Happens Automatically
✨ **After you push files:**
1. **Frontend** detects it's on HF Spaces
2. **Automatically** connects to backend at:
```
https://lablab-ai-amd-developer-hackathon-andesai-backend.hf.space
```
3. **No manual config** needed! πŸŽ‰
---
## ⏱️ Timeline
| Time | What | Status |
|------|------|--------|
| Now | Push code | 5 mins βœ… |
| +5 | Create backend space | 2 mins βœ… |
| +7 | Upload files | 3 mins βœ… |
| +10 | Add secrets | 2 mins βœ… |
| +12 | Update frontend | 3 mins βœ… |
| +15 | Spaces start building | πŸ”„ 5-10 mins |
| +25 | Both ready! | βœ… Test |
| +30 | Deploy complete! | πŸš€ Success |
**Total: ~30 minutes**
---
## 🎯 After Deploy
### Immediate (Today)
- [ ] Test all features work
- [ ] Take screenshots
- [ ] Update README with links
- [ ] Share on social media
### Short-term (This week)
- [ ] Monitor likes (track progress)
- [ ] Fix any bugs found
- [ ] Optimize performance
- [ ] Add demo video
### Long-term (This month)
- [ ] Keep adding features
- [ ] Improve UI/UX
- [ ] Get more likes
- [ ] Prepare presentation
---
## πŸ†˜ If Something Breaks
### Frontend shows error
β†’ Check: `/api/health` endpoint is responding
β†’ Fix: Restart backend space
### Backend won't build
β†’ Check: All secrets are added
β†’ View: Space logs for errors
β†’ Fix: Push corrected files
### No data showing
β†’ Check: Market Monitor trying to connect
β†’ View: Browser console (F12)
β†’ Fix: Verify API_BASE auto-detection logs
---
## πŸ“± Sharing Template
```
πŸŽ‰ Just deployed AndesOps AI on @huggingface Spaces!
πŸ‡¨πŸ‡± Chilean Public Procurement Intelligence
- Real-time market monitoring
- AI-powered tender analysis
- Government purchase order tracking
⭐ Give it a like to support our hackathon entry!
[YOUR_SPACE_URL]
#HuggingFace #AI #Hackathon #Chile #NextJS #FastAPI
```
---
## ✨ You're All Set!
Your AndesOps AI is:
- βœ… Production optimized
- βœ… Docker best practices
- βœ… Auto-detection ready
- βœ… CORS configured
- βœ… Health checks enabled
- βœ… Security hardened
**Just need to upload and it works! πŸš€**
---
**Questions? Check HUGGING_FACE_DEPLOY.md for detailed guide**