mirror of
https://github.com/nprasad2077/NBA_Go.git
synced 2026-09-22 14:05:13 +00:00
2ee23ad0f210efec17f7d2b00049561ca6d6010b
NBA_Go
First‑time bootstrap
# 1. build + run
docker-compose up --build -d
# 2. create API key (ADMIN_SECRET is loaded from .env)
curl -XPOST http://localhost:8080/admin/keys \
-H "X-Admin-Secret: $ADMIN_SECRET" \
-d '{"label":"local-test"}'
# → { "id":1, "apiKey":"ab12cd…" }
# 3. call a protected endpoint
curl http://localhost:8080/api/playeradvancedstats \
-H "X-API-Key: ab12cd…"
Swagger Initiate Docs
swag init -g main.go -o docs
Description
No description provided
basketballbasketball-scoresbasketball-statsnbanba-analyticsnba-apinba-datanba-statsnba-visualization
Readme
MIT
9.1 MiB
Languages
Go
95.4%
Shell
4.1%
Dockerfile
0.4%
Makefile
0.1%