Skip to content

Latest commit

 

History

History
77 lines (51 loc) · 1.28 KB

File metadata and controls

77 lines (51 loc) · 1.28 KB

Getting Started

Hướng dẫn cài đặt và khởi động nhanh Media Extraction API.

Yêu Cầu

  • Node.js >= 18
  • npm hoặc pnpm

Cài Đặt

1. Clone Repository

git clone <repository-url>
cd Media-Extraction

2. Install Dependencies

npm install

3. Cấu Hình Environment

Copy file .env.example thành .env:

cp .env.example .env

Chỉnh sửa .env và thêm ít nhất:

API_URL=http://localhost:9000

Xem Configuration Guide để biết tất cả các options.

4. Khởi Động Server

npm start

Server sẽ chạy tại http://localhost:9000 (hoặc port bạn đã cấu hình).

5. Kiểm Tra Server

# Health check
curl http://localhost:9000/health

# Server info
curl http://localhost:9000/

Quick Test

Test với một video YouTube:

curl -X POST http://localhost:9000/ \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
    "videoQuality": "1080"
  }'

Next Steps