# TeleFlow CRM - Deployment Package Instructions

## Quick Start (3 Steps)

### Step 1: Generate Vendor Folder (One-Time, Local)

On ANY computer with Composer installed:

```bash
# Download Composer if not installed: https://getcomposer.org/download/

# Navigate to the project
cd C:\Users\Abdul Rehman\Downloads\teleflow-crm

# Install dependencies
composer install --no-dev --optimize-autoloader

# This creates the vendor/ folder (~50-80MB)
```

### Step 2: Upload to Server

Via cPanel File Manager:
1. Compress the entire `teleflow-crm` folder to ZIP
2. Upload `teleflow-crm.zip` to your server
3. Extract in `/home/etastore/casin56.eu.cc/`

Or via FTP:
- Upload entire `teleflow-crm` folder including the `vendor/` subdirectory

### Step 3: Run Installer

Visit: `https://casin56.eu.cc/install.php`

The installer will:
- Check if vendor/autoload.php exists (FAIL if missing)
- Configure .env file
- Test database connection
- Run migrations
- Seed default data
- Create admin account

## Package Contents

```
teleflow-crm/
├── vendor/              ← MUST be generated locally with composer install
├── app/
├── config/
├── database/
├── public/
│   └── install.php     ← Entry point
├── resources/
├── routes/
├── storage/
├── .env.example
├── composer.json
└── composer.lock
```

## No Composer Required on Server

The server does NOT need:
- Composer installed
- Shell/SSH access
- Terminal access

The vendor folder is portable - generate once, upload anywhere.

## Troubleshooting

**"vendor/autoload.php not found"**
- You forgot to run `composer install` locally
- The vendor folder didn't upload completely
- Solution: Generate vendor folder and re-upload

**Installation takes too long**
- Large vendor folder upload can take 5-10 minutes
- Use cPanel File Manager's "Extract" feature instead of uploading individual files

**Permissions errors**
- Set storage/ to 755 or 777 via cPanel File Manager

## Need Help?

Contact: support@teleflow.app
