- Run target server
cd hello-server && go run main.go
- Run proxy server
TARGET_URL="http://localhost:1323" go run main.go
- Check proxy:
curl http://localhost:3000
You will getHelloWorld
flowchart LR
curl -- GET --> localhost:3000 --> localhost:1323