Edwin Salguero
Prepare for Streamlit Cloud deployment - Add deployment files, fix clustering chart error, update requirements
6ce20d9
FRED ML - Streamlit Cloud Deployment Guide
Overview
This guide explains how to deploy the FRED ML Economic Analytics Platform to Streamlit Cloud for free.
Prerequisites
- GitHub account
- Streamlit Cloud account (free at https://share.streamlit.io/)
Deployment Steps
1. Push to GitHub
git add .
git commit -m "Prepare for Streamlit Cloud deployment"
git push origin main
2. Deploy to Streamlit Cloud
- Go to https://share.streamlit.io/
- Sign in with GitHub
- Click "New app"
- Select your repository:
your-username/FRED_ML
- Set the main file path:
streamlit_app.py
- Click "Deploy"
3. Configure Environment Variables
In Streamlit Cloud dashboard:
- Go to your app settings
- Add these environment variables:
FRED_API_KEY
: Your FRED API keyAWS_ACCESS_KEY_ID
: Your AWS access keyAWS_SECRET_ACCESS_KEY
: Your AWS secret keyAWS_REGION
: us-east-1
4. Access Your App
Your app will be available at: https://your-app-name-your-username.streamlit.app
Features Available in Deployment
- β Real FRED API data integration
- β Advanced analytics and forecasting
- β Professional enterprise-grade UI
- β AWS S3 integration (if credentials provided)
- β Local storage fallback
- β Comprehensive download capabilities
Troubleshooting
- If you see import errors, check that all dependencies are in
requirements.txt
- If AWS features don't work, verify your AWS credentials in environment variables
- If FRED API doesn't work, check your FRED API key
Security Notes
- Never commit
.env
files to GitHub - Use Streamlit Cloud's environment variables for sensitive data
- AWS credentials are automatically secured by Streamlit Cloud