A service for storing people, places and things that interest you.
NOTE: Just Playing with Go-Kit. For the real source, see: https://github.com/go-kit
- Navigate to the Nouns project
cd ${GOPATH}/src/github.com/mackdoyle/nouns
- Build the latest source
go build
- In a second terminal, start three web servers and then a fourth that proxies to the first three via port 9000
nouns -listen=:8001 & nouns -listen=:8002 & nouns -listen=:8003 & nouns -listen=:9000 -proxy=localhost:8001,localhost:8002,localhost:8003
To post to the noun service, you can use cURL and pass in an example body.
curl -X POST -d @schemas/examples/noun.json localhost:9000/noun
Once you are done testing, you can stop all servers using this nifty command
kill -9 $(ps aux | grep listen | grep -v grep | awk '{print $2}')