================================================================================
                    ⚡ QUICK DEPLOYMENT CHECKLIST ⚡
                         (5-10 Minutes)
================================================================================

✅ STEP 1: CREATE DATABASE (2 minutes)
   □ Log into cPanel
   □ Go to "MySQL Databases"
   □ Create new database (example: mydomain_codelab)
   □ Create new user with strong password
   □ Add user to database with ALL PRIVILEGES
   □ Write down these credentials!

================================================================================

✅ STEP 2: UPDATE .ENV FILE (1 minute)
   □ Open .env file in this folder
   □ Update these lines:
      DB_USER=your_database_username
      DB_PASS=your_database_password
      DB_NAME=your_database_name
   □ Change access codes:
      INSTRUCTOR_ACCESS_CODE=make_this_unique
      ADMIN_ACCESS_CODE=make_this_unique
   □ Save the file

================================================================================

✅ STEP 3: COMPRESS THIS FOLDER (1 minute)
   □ Right-click on "Capstone_Project_CPANEL" folder
   □ Select "Send to" → "Compressed (zipped) folder"
   □ Name it: capstone.zip

================================================================================

✅ STEP 4: UPLOAD TO CPANEL (2 minutes)
   □ Log into cPanel
   □ Open "File Manager"
   □ Navigate to "public_html"
   □ Click "Upload" button
   □ Upload capstone.zip
   □ Wait for upload to complete

================================================================================

✅ STEP 5: EXTRACT FILES (1 minute)
   □ In File Manager, right-click capstone.zip
   □ Select "Extract"
   □ Wait for extraction to complete
   □ Delete capstone.zip

================================================================================

✅ STEP 6: SET PERMISSIONS (1 minute)
   □ Right-click "cache" folder → Permissions → 755 or 777
   □ Right-click "uploads" folder → Permissions → 755 or 777

================================================================================

✅ STEP 7: TEST DEPLOYMENT (2 minutes)
   □ Visit: https://yourdomain.com/test_setup.php
   □ Check that all tests pass ✅
   □ If any fail, fix issues and retest
   □ DELETE test_setup.php after all tests pass!

================================================================================

✅ STEP 8: LAUNCH! (1 minute)
   □ Visit: https://yourdomain.com/
   □ Homepage should load correctly
   □ Register a test student account
   □ Try running a simple C++ program:

      #include <iostream>
      using namespace std;

      int main() {
          cout << "Hello, World!" << endl;
          return 0;
      }

   □ Should output: Hello, World! (no 403 errors!)

================================================================================

🎉 DONE! Your system is now live!

================================================================================

❗ IMPORTANT SECURITY STEPS:

After successful deployment:
□ Delete test_setup.php
□ Verify .env file is not publicly accessible
□ Enable HTTPS/SSL certificate in cPanel
□ Keep database credentials secure
□ Use strong access codes

================================================================================

🆘 TROUBLESHOOTING:

Issue: Database connection failed
→ Check database credentials in .env
→ Verify database user has ALL PRIVILEGES

Issue: Permission errors
→ Set cache/ and uploads/ to 777

Issue: 403 errors when running code
→ Check internet connection from server
→ Test Piston API: https://emkc.org/api/v2/piston/runtimes

For more help, see DEPLOYMENT_GUIDE.md

================================================================================

📞 SUPPORT:

- Detailed Guide: DEPLOYMENT_GUIDE.md
- Project Info: README.md
- Main Summary: ../DEPLOYMENT_SUMMARY.md (one folder up)

================================================================================
