spring-cloud-config/Makefile

34 lines
700 B
Makefile

.PHONY: build test
GRADLE_BIN=./gradlew
BASIC_AUTH="user:b3956c50-2e1e-4426-aaca-6b09f7cc4808"
SERVER_CONFIG=localhost:8090
build:
# build without executing test
$(GRADLE_BIN) build -x test
test:
$(GRADLE_BIN) test
run-client:
$(GRADLE_BIN) client:bootRun
run-server:
$(GRADLE_BIN) server:bootRun
curl-server:
curl -s -u $(BASIC_AUTH) $(SERVER_CONFIG)/client/development |jq
encrypt-server:
curl -s -u $(BASIC_AUTH) $(SERVER_CONFIG)/encrypt/client/development --data-urlencode "Hello world 2"
client-development-refresh:
curl -s -u $(BASIC_AUTH) $(SERVER_CONFIG)/client/development/refresh |jq
curl-client:
curl -s localhost:8080/v1/message
client-env:
curl -s localhost:8080/env