ehiaborsuccess/OutreachAI
0
1# GitHub Integration & Safe Deployment Guide ๐2 3Using GitHub is the **best way** to keep your code safe and deploy it to the cloud. Here is how to do it correctly and safely.4 5---6 7> [!CAUTION]8> **Safety First**: NEVER push your `.env` file or SQLite database to GitHub. I have already created a `.gitignore` file for you to prevent this automatically.9 10---11 12## 1. Create Your Repository131. Go to [GitHub.com](https://github.com/) and create a **New Repository**.142. **Name**: `outreach-ai`153. **Privacy**: Set it to **Private** (recommended for your job application info).16 17## 2. Push Your Code18Open your terminal in the `JOB APPLICATION` folder and run:19```bash20git init21git add .22git commit -m "Initial commit with real-world scraper"23git branch -M main24git remote add origin https://github.com/Sleekempire/outreach-ai.git25git push -u origin main26```27 28## 3. Deploy to the Cloud29Once your code is on GitHub, you can connect it to **Render** or **Railway**:30 31### Using Render (Free & Easy)321. Log in to [Render.com](https://render.com/).332. Click **New +** > **Web Service**.343. Connect your GitHub account and select the `outreach-ai` repo.354. **Settings**:36 - **Environment**: Python37 - **Build Command**: `pip install -r requirements.txt`38 - **Start Command**: `python -m uvicorn backend.main:app --host 0.0.0.0 --port $PORT`395. **Environment Variables**:40 - Click **Environment** in the sidebar.41 - Add `SMTP_PASSWORD` (your Gmail App Password).42 - Add `OPENAI_API_KEY` (if you have one).43 44---45 46## How to Keep the Machine Running (Free Tier) ๐47*Free services like Render "sleep" after 15 minutes of inactivity. Use these tricks to keep it alive:*48 49### Option A: Use the Keep-Alive Script50I've added a [**keep_alive.py**](file:///c:/Users/customer/Desktop/JOB%20APPLICATION/keep_alive.py) file. You can run this on any computer (even a different one) to ping your app every 10 minutes:51```bash52python keep_alive.py53```54*(Make sure to update the URL in the script to your actual Render URL!)*55 56### Option B: Use a Free Cron Service (Recommended)571. Go to [cron-job.org](https://cron-job.org/).582. Create a free account.593. Create a "Cronjob" that pings your URL (e.g., `https://your-app.onrender.com/health`) every 10 minutes.604. This will keep your app "awake" 24/7 for free!61 