2025-06-19 23:44:42 -05:00
2025-05-08 00:32:49 -05:00
2025-06-18 19:52:47 -05:00
2025-06-18 22:59:04 -05:00
2025-06-18 22:59:04 -05:00
2025-06-03 22:56:34 -05:00
2025-06-03 20:28:46 -05:00
2025-05-01 00:16:24 -05:00
2025-05-01 01:14:16 -05:00
2025-06-03 20:28:46 -05:00
2025-06-19 23:20:39 -05:00
2025-05-08 17:11:25 -05:00
2025-06-03 22:56:34 -05:00
2025-06-03 21:29:16 -05:00
2025-05-01 00:16:24 -05:00
2025-06-03 22:56:34 -05:00
2025-06-19 22:06:44 -05:00
2025-06-19 22:06:44 -05:00
2025-06-19 22:06:44 -05:00
2025-06-19 23:44:42 -05:00
2025-05-13 17:43:08 -05:00
2025-06-18 19:52:47 -05:00
2025-06-18 19:52:47 -05:00
2025-06-19 23:33:54 -05:00
2025-06-03 21:29:16 -05:00
2025-06-19 22:20:43 -05:00
2025-05-08 21:30:50 -05:00

NBA_Go

Firsttime 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

Test

go run loadtest.go -n 100 -c 10 -url "http://127.0.0.1:8080/api/playeradvancedstats?page=1&pageSize=20" -log results.log -key "xxx"
Languages
Go 95.4%
Shell 4.1%
Dockerfile 0.4%
Makefile 0.1%