mirror of
https://github.com/nprasad2077/NBA_Go.git
synced 2026-09-22 14:05:13 +00:00
logger update and makefile created
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# NBA_Go
|
||||
|
||||
### First‑time bootstrap
|
||||
## First‑time bootstrap
|
||||
|
||||
```bash
|
||||
# 1. build + run
|
||||
@@ -18,19 +18,23 @@ curl http://localhost:8080/api/playeradvancedstats \
|
||||
|
||||
```
|
||||
|
||||
### Swagger Initiate Docs
|
||||
## Swagger Initiate Docs
|
||||
|
||||
```bash
|
||||
swag init -g main.go -o docs
|
||||
```
|
||||
|
||||
### Test
|
||||
## Test
|
||||
|
||||
```bash
|
||||
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"
|
||||
```
|
||||
|
||||
### Local Environment
|
||||
## Local Environment
|
||||
|
||||
```bash
|
||||
docker compose down
|
||||
```
|
||||
|
||||
```bash
|
||||
docker-compose -f docker-compose.local.yml up --build -d
|
||||
|
||||
Reference in New Issue
Block a user