sports
هذا المحتوى غير متوفر بلغتك بعد.
Sports Plugin
Section titled “Sports Plugin”Sports scores, schedules, standings, user favorites, and multi-provider data sync. Pro plugin.
Requires: Basic license tier or higher.
nself license set nself_pro_...
Install
Section titled “Install”nself license set nself_pro_xxxxx...nself plugin install sportsWhat It Does
Section titled “What It Does”The sports plugin pulls live and historical data from your chosen provider (theScore, ESPN, or Sportradar) and normalises it into a consistent schema covering leagues, teams, players, games, scores, and standings. Users can save favorites and receive event-driven updates when scores change.
Configuration
Section titled “Configuration”| Env Var | Default | Description |
|---|---|---|
SPORTS_PORT | 3126 | Port the service listens on |
SPORTS_API_KEY | none | API key for the chosen data provider |
SPORTS_PROVIDER | none | Data provider: theScore, ESPN, or Sportradar |
| Port | Purpose |
|---|---|
3126 | Sports REST API |
Database Tables
Section titled “Database Tables”11 tables added to your Postgres database:
np_sports_leaguesnp_sports_teamsnp_sports_playersnp_sports_gamesnp_sports_scoresnp_sports_standingsnp_sports_schedulesnp_sports_favoritesnp_sports_eventsnp_sports_providersnp_sports_sync_log
Nginx Routes
Section titled “Nginx Routes”| Route | Target |
|---|---|
/api/sports/ | localhost:3126 |