═══════════════════════════════════════════════════════════════════
 🚀 MLM SYSTEM - INSTALLATION GUIDE
═══════════════════════════════════════════════════════════════════

📌 QUICK START - TWO OPTIONS:

┌─────────────────────────────────────────────────────────────────┐
│  Option 1: Docker Compose (RECOMMENDED)                        │
└─────────────────────────────────────────────────────────────────┘

   Fast, isolated, and reliable!

   $ unzip mlm_system.zip
   $ cd mlm_system
   $ chmod +x docker-deploy.sh
   $ sudo ./docker-deploy.sh

   DONE! System is ready in 3-5 minutes.

┌─────────────────────────────────────────────────────────────────┐
│  Option 2: Native Installation with PM2                        │
└─────────────────────────────────────────────────────────────────┘

   Direct installation without Docker:

   $ unzip mlm_system.zip
   $ cd mlm_system
   $ chmod +x auto-install.sh
   $ sudo ./auto-install.sh

   DONE! System is ready in 5-10 minutes.

═══════════════════════════════════════════════════════════════════

🔐 DEFAULT LOGIN:

   Email:    admin@mlm.com
   Password: admin123

   ⚠️  IMPORTANT: Change password after first login!

═══════════════════════════════════════════════════════════════════

🌐 ACCESS:

   Main URL:  http://YOUR_SERVER_IP
   Local:     http://localhost
   Health:    http://YOUR_SERVER_IP/health

═══════════════════════════════════════════════════════════════════

📖 FULL DOCUMENTATION:

   📄 README_FA.md       - Complete Persian guide
   📄 README_DEPLOY.md   - English deployment guide
   📄 docker-compose.yml - Docker configuration
   📄 ecosystem.config.js- PM2 configuration

═══════════════════════════════════════════════════════════════════

🛠️ MANAGEMENT COMMANDS:

   Docker Compose:
   ───────────────
   $ sudo docker compose ps          # Status
   $ sudo docker compose logs -f     # Logs
   $ sudo docker compose restart     # Restart
   $ sudo docker compose down        # Stop
   $ sudo docker compose up -d       # Start

   PM2:
   ─────
   $ pm2 list                        # Status
   $ pm2 logs mlm-backend            # Logs
   $ pm2 restart all                 # Restart
   $ pm2 stop all                    # Stop
   $ pm2 start all                   # Start

   Nginx:
   ──────
   $ sudo systemctl status nginx     # Status
   $ sudo systemctl restart nginx    # Restart
   $ sudo nginx -t                   # Test config

═══════════════════════════════════════════════════════════════════

✨ FEATURES:

   ✅ One-command installation
   ✅ Auto-start after reboot
   ✅ Automatic Nginx configuration
   ✅ MongoDB & Redis in Docker
   ✅ PM2 Process Management
   ✅ Production-ready build
   ✅ Database indexes applied
   ✅ Zero manual steps required

═══════════════════════════════════════════════════════════════════

📞 TROUBLESHOOTING:

   Check Health:
   $ curl http://localhost/health

   View Logs:
   $ pm2 logs
   $ sudo docker compose logs

   Restart System:
   $ ./start-system.sh

   Stop System:
   $ ./stop-system.sh

═══════════════════════════════════════════════════════════════════

💡 REQUIREMENTS:

   - OS: Ubuntu 18+, Debian 10+, CentOS 7+, Rocky Linux
   - RAM: 2GB minimum (4GB recommended)
   - Disk: 5GB free space
   - Root or sudo access

   Everything else will be installed automatically!

═══════════════════════════════════════════════════════════════════

🎉 ENJOY YOUR MLM SYSTEM!

   After successful installation, the system will:
   - Start automatically after server reboot
   - Run in the background (no terminal needed)
   - Be accessible via browser at http://YOUR_SERVER_IP

═══════════════════════════════════════════════════════════════════
