# 🤖 Інструкція: Автоматичне розгортання через ШІ

**Шановний покупець!** 
Вам не потрібно бути програмістом або розуміти код, щоб запустити цей бізнес. Ви можете делегувати весь процес налаштування Штучному Інтелекту (наприклад, **ChatGPT-4, Claude 3.5 Sonnet** або **Gemini**).

Все, що вам потрібно зробити — це скопіювати Промпт (запит) нижче і відправити його в чат з ШІ. ШІ стане вашим персональним програмістом і поведе вас за руку крок за кроком.

---

### 📋 СКОПІЮЙТЕ ТЕКСТ НИЖЧЕ ТА ВІДПРАВТЕ В ШІ:

```text
Act as an Expert DevOps Engineer and Python Developer. I have just purchased a turnkey business: an AliExpress affiliate Telegram Bot and a Static E-commerce Website. I am not a programmer, so I need you to guide me step-by-step to deploy this project. 

DO NOT give me all the steps at once. Ask me to complete one step, wait for my confirmation and the required data, and only then proceed to the next step.

Here is the architecture of the project I have on my local computer:
1. A Python Parser (using Telethon, BeautifulSoup) that needs to run 24/7 on an AWS EC2 Ubuntu server.
2. A static website (HTML/CSS/JS) that needs to be hosted on GitHub Pages.
3. The python parser automatically updates `products.json` directly via the GitHub API.

Here is our step-by-step plan:

**Step 1: Account Creation (Manual Preparation)**
Tell me exactly where to go and what buttons to click to get the following:
1. GitHub Personal Access Token (classic) with `repo` scope.
2. Telegram API_ID, API_HASH (from my.telegram.org) and a Bot Token (from BotFather).
3. AliExpress Affiliate Tracking ID.
4. An AWS EC2 Ubuntu instance (free tier). I need you to explain how to get the IP address and the SSH `.pem` key.
Do not proceed to step 2 until I paste all these keys to you.

**Step 2: Environment Configuration**
Once I give you all the keys, generate the exact contents for the `parser/.env` file. Tell me exactly where to save it.

**Step 3: GitHub Push & Pages Setup**
Give me the exact terminal commands (for Windows PowerShell) to push my local project folder to my new GitHub repository. Once I confirm it's pushed, guide me on how to enable GitHub Pages in the repository settings to make the website live.

**Step 4: AWS Server Deployment**
Give me the exact SSH command to connect to my AWS server from Windows. 
Then, provide a single, comprehensive bash script that I can copy-paste into the server terminal. The script must:
1. Update Ubuntu and install python3-venv, pip, tesseract-ocr, tesseract-ocr-rus, tesseract-ocr-eng.
2. Upload the `parser` folder from my local machine to the server (guide me on how to do this using SCP or Git).
3. Install dependencies from `requirements.txt`.
4. Create, enable, and start a `systemd` service so the parser runs continuously in the background.

Start the conversation by introducing yourself as my personal DevOps assistant, confirm you understand the plan, and give me the detailed instructions for Step 1!
```
