Datasourceforcryptocurrency / DEPLOY_INSTRUCTIONS.txt
Really-amin's picture
Upload 227 files
9eb5769 verified
raw
history blame
2.47 kB
πŸš€ HUGGING FACE DEPLOYMENT INSTRUCTIONS
========================================
βœ… YOUR PROJECT IS READY TO DEPLOY!
πŸ“¦ What's Configured:
--------------------
βœ“ Dockerfile - Runs FastAPI on port 7860
βœ“ requirements.txt - All dependencies included
βœ“ README.md - HuggingFace metadata header
βœ“ app.py - Serves HTML UI at root (/)
βœ“ unified_dashboard.html - Main UI
βœ“ static/ - CSS & JS files
βœ“ All API endpoints configured
🎯 Main UI Files:
-----------------
/ β†’ unified_dashboard.html (Main Dashboard)
/dashboard.html β†’ dashboard.html
/enhanced_dashboard.html β†’ Enhanced features
/admin.html β†’ Admin panel
/pool_management.html β†’ Pool management
/hf_console.html β†’ HuggingFace console
πŸ“‘ API Endpoints:
-----------------
/docs β†’ Swagger API documentation
/redoc β†’ ReDoc documentation
/health β†’ Health check
/api/providers β†’ Provider status
/api/market β†’ Market data
/ws β†’ WebSocket for live updates
πŸ”§ Deployment Steps:
--------------------
1. Create New Space on HuggingFace:
- Go to: https://huggingface.co/spaces
- Click "Create new Space"
- Choose: Docker SDK
- Visibility: Public or Private
2. Clone Your Space:
git clone https://huggingface.co/spaces/YOUR_USERNAME/YOUR_SPACE_NAME
cd YOUR_SPACE_NAME
3. Copy All Files:
Copy everything from this folder to your Space folder
4. Push to HuggingFace:
git add .
git commit -m "Initial deployment"
git push
5. Wait for Build:
- HuggingFace will build your Docker image
- Takes 5-10 minutes
- Check logs in Space settings
6. Access Your Dashboard:
https://YOUR_USERNAME-YOUR_SPACE_NAME.hf.space
πŸ”‘ Optional - Add API Keys:
---------------------------
Go to Space Settings β†’ Repository secrets:
- ETHERSCAN_KEY
- BSCSCAN_KEY
- CMC_KEY
- CRYPTOCOMPARE_KEY
- NEWSAPI_KEY
⚑ What Happens on Startup:
---------------------------
1. Docker builds image with Python 3.11
2. Installs all requirements
3. Starts FastAPI server on port 7860
4. Serves unified_dashboard.html at root
5. WebSocket connects for live updates
6. All APIs start monitoring
🎨 Your HTML UI Features:
-------------------------
βœ“ Real-time provider monitoring
βœ“ WebSocket live updates
βœ“ Interactive charts
βœ“ Category filtering
βœ“ Health status indicators
βœ“ Rate limit tracking
βœ“ Pool management
βœ“ Feature flags control
βœ… READY TO DEPLOY!