1. Development
DATA SPORT
  • DATABASE-SPORT
    • Tổng quan
    • Logic
      • Logic tổng thể
    • Projects
      • Yêu cầu hệ thống
      • Architecture
        • Database
    • Public APi
      • Tổng quan
    • Cron Make File
      • Tổng quan
  • GOLANG-THESPORT
    • Tổng quan
    • Architecture
      • System
      • Database
      • Source Code
    • Development
      • Local
      • Production
  • GOLANG-KSPORT
    • Tổng quan
    • Architecture
      • System
      • Database
      • Source Code
    • Development
      • Production
  • CRONJOB-LARAVEL
    • Tổng quan
    • Logic
      • Logic tổng thể
    • Projects
      • Yêu cầu hệ thống
      • Architecture
        • System
        • Source code
        • Database
      • Development
        • Dev
        • Production
      • Public API
        • Common API
          • League & Cup Profile (Basic)
          • Schedule & Results (Basic)
          • Match Modify Record
          • List of Countries
          • List of Bookmakers
          • Configuration instructions
        • Live animation
          • Configuration instructions
          • Schedule & Results
        • Live Data
          • Livescores for Today
          • Livescores Changes
          • Schedule & Results
          • Schedule Changes
          • Events
          • Stats
          • Corner
          • Lineups
          • Injury
          • Match List of Live Text
          • Live Text
          • Transfer
        • Profile
          • League & Cup Profile
          • Subleague Profile
          • Cup Stage Profile
          • Team Profile
          • Team Profile Copy
          • Team Profile for Search
          • Player Profile
          • Player Profile for Search
          • Referee Profile
          • Teamlist with Player Profile
        • Stats
          • Matches Analysis
          • List of Player Stats (Match)
          • Player Stats (Match)
          • List of Player Stats (League & Cup)
          • Player Stats (League & Cup)
          • League Standing (Get Subleague)
          • League Standing
          • Cup Standing
          • Top Scorer
          • FIFA Ranking
        • Odds (18 bookmakers)
          • Pre-match and In-play Odds (Main)
          • Live Odds Changes (Main)
          • Historical Odds (Main)
          • Future Odds (Main)
          • Pre-match and In-play Odds (All)
          • Live Odds Changes (All)
          • Historical Odds (All)
          • Future Odds (All)
          • European Odds (Halftime)
          • In-play Odds
          • In-play Odds (Halftime)
          • Odd Modify Record
        • European Odds (200+ Bookmakers)
          • European Odds (200+ Bookmakers)
        • Other Odds
          • Outrights
          • First/Last Team To Score (pre-match)
          • Goals Odd/Even (pre-match)
          • Goals Odd/Even (In-play)
          • Number of Goals in Match (pre-match)
          • Number of Goals in Match (In-play)
          • Half Time/Full Time (pre-match)
          • Half Time/Full Time (In-play)
          • Correct Score (pre-match)
          • Correct Score (In-play)
          • Half Time Correct Score (pre-match)
          • Half Time Correct Score (In-play)
          • Handicap Corners (pre-match)
          • Handicap Corners (In-play)
          • Total Corners (pre-match) - Tổng phạt góc trước trận đấu: First Odds
          • Total Corners (In-play) - Tổng số quả phạt góc (Trong trận) - Run Odds
          • Double Chance(pre-match)
          • EuroHandicap(pre-match)
  • GOLANG-WEBSOCKET
    • Tổng Quan
    • Logic
      • Logic tổng thể
    • Projects
      • Yêu cầu hệ thống
      • Architecture
        • System
        • Source code
      • Development
        • Dev
        • Production
      • Public API
        • API
  • ADMIN-BANNER
    • Tổng quan
    • Logic
      • Logic tổng thể
    • Projects
      • Architecture
        • System
        • Source Code
      • Development
        • Develop
        • Production
      • Public API
        • API
      • Database
        • Cấu trúc Database
      • Admin FE
        • HƯỚNG DẪN CÀI ĐẶT MÔI TRƯỜNG DỰ ÁN SPORT ADMIN
        • Hướng dẫn Đăng nhập
        • QUẢN LÝ SITE (SITE MANAGEMENT)
        • QUẢN LÝ GIẢI ĐẤU (LEAGUE MANAGEMENT)
        • QUẢN LÝ NHÀ CUNG CẤP (SUPPLIER MANAGEMENT)
        • TIP & CHUYÊN GIA - TAB QUẢN LÝ TIPS (TIPS MANAGEMENT)
        • WHITELIST
        • QUẢN LÝ MINIGAME (MINIGAME MANAGEMENT)
        • TRAFFIC REPORT
        • TOOLS - RAPID DATA
        • TOOLS - LIVE SITES
        • TOOLS - SUPPLIERS
        • THEME / PLUGIN
        • NGƯỜI DÙNG - PHÂN QUYỀN VÀ HIỂN THỊ (PERMISSION & DISPLAY MANAGEMENT)
        • QUẢN LÝ NGƯỜI DÙNG (USER MANAGEMENT)
        • NGƯỜI DÙNG - QUẢN LÝ NHÓM QUYỀN (ROLE GROUP MANAGEMENT)
  1. Development

Dev

Hệ thống sử dụng file .env để quản lý cấu hình.

Danh sách biến chính#

⚠️ Lưu ý bảo mật
Không commit .env
Không public secret
Sử dụng secret manager nếu có

I. Hướng dẫn chạy hệ thống#

1.
Clone source
2.
Run Docker
3.
RUN composer
4.
Run npm
5.
Run migrate
6.
Run cronjob & queuejob

Hệ Thống Điều Phối Cronjobs lưu dữ liệu từ API#

Tài liệu tổng hợp các tiến trình chạy tự động trên Server. Tất cả các Job được cấu hình:
onOneServer(): Chỉ chạy trên 1 server để tránh xung đột dữ liệu.
runInBackground(): Chạy ngầm để không làm nghẽn tiến trình chính.
withoutOverlapping(X): Cơ chế khóa (lock) trong X phút để tránh chạy chồng lấn.

Nhóm Chức NăngCommandTần suất (Frequency)Lock (m)Ghi chú
Real-timefootball:odds-save-file-commandMỗi 1 giây1Tạo dữ liệu Odds realtime, gửi socket
Real-timefootball:schedule:get-live-changeMỗi 2 giây20Theo dõi trận đấu đang diễn ra
Real-timefootball:odds-save-ksport-file-commandMỗi 2 giây30Đồng bộ file Ksport
Real-timestandard:storeStandardDetailMỗi 10 giây56Chi tiết biến động Tỉ lệ 1x2
Real-timeodds:corners-ou-in-playMỗi 10 giây16Tỉ lệ phạt góc trong trận
Real-timefootball:get-live-textMỗi 15 giây60Tường thuật trực tiếp (Text)
Real-timeodds:euro-handicap-pre-matchMỗi 15 giây17Tỉ lệ chấp Châu Âu trước trận
Real-timeodds:correct-score-in-playMỗi 15 giây20Tỉ lệ tỷ số chính xác trong trận
Dự đoán/AImatch:gen-six-in-oneMỗi 20 giây25Tổng hợp dữ liệu 6-in-1
Dự đoán/AImatch:gen-match-score-mainMỗi 30 giây10Dự đoán tỷ số chính
Dữ liệu Trậnfootball:schedule:get-todayMỗi 1 phút10Danh sách trận đấu hôm nay
Dữ liệu Trậnlivescore:get-detail-resultMỗi 1 phút26Sự kiện trận đấu (Thẻ, Goal)
Dữ liệu Trậnfootball:top-scorerMỗi 1 phút20Cập nhật tay săn bàn
Dữ liệu Trậnscore:getScoreMỗi 5 phút38Đồng bộ tỷ số tổng quát
Đội hìnhfootball:team-lineupMỗi 4 phút21Đội hình ra sân chính thức
Phân tíchpredict:matches-liveMỗi 5 phút10Chạy AI dự đoán trận đang live
Phân tíchmatch:gen-match-result-predictionMỗi 36 phút10Tự động viết bài dự đoán
Thống kêfootball:get-player-tech-statisticsMỗi 10 phút15Chỉ số kỹ thuật cầu thủ
Master Datateam:getTeamMỗi 6 giờ10Lấy thông tin Team mới
Master Datafootball:get-player-list02:00 & 14:0014Đồng bộ danh sách cầu thủ
Master Dataleague:getSclassHàng ngày 00:4815Thông tin giải đấu chính
Phân tích Sâufootball:schedule-analysis-todayHàng ngày 01:0015Phân tích sâu trận hôm nay
Phân tích Sâufootball:schedule-analysis-day-1->601:20 - 03:0015Phân tích 6 ngày tới
Modified at 2026-03-27 08:53:42
Previous
Database
Next
Production
Built with