크론구조 개선
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
- Keep `cmd/server` thin; place new logic in `internal/<domain>` with clear boundaries.
|
||||
|
||||
## Build, Test, and Development Commands
|
||||
- `PORT=8080 GEOIP_DB_PATH=./GeoLite2-City.mmdb go run ./cmd/server` runs the API locally without Docker.
|
||||
- `SERVICE_PORT=8080 GEOIP_DB_PATH=./GeoLite2-City.mmdb go run ./cmd/server` runs the API locally without Docker.
|
||||
- `docker compose up --build` builds and starts the containerized service (mounts the local database).
|
||||
- `curl "http://localhost:8080/lookup?ip=1.1.1.1"` exercises the lookup endpoint; omit `ip` to use the caller’s address.
|
||||
- `go build ./...` validates compilation before pushing changes.
|
||||
|
||||
Reference in New Issue
Block a user