This project is a refactored version of the "stringsvc" example from the Go kit tutorial. The original tutorial can be found at https://gokit.io/examples/stringsvc.html.
The primary purpose of this project is to serve as a learning resource for those interested in:
- Understanding Go kit's architecture and components
- Implementing microservices using Go kit
- Structuring a Go project following standard practices
To run the service locally:
- Clone the repository
- Navigate to the project root
- Run
go mod tidy
to download dependencies - Start the server with
go run cmd/server/main.go
The service will be available at http://localhost:8080
.
You can test the service using curl:
curl -XPOST -d'{"s":"hello, world"}' localhost:8080/uppercase
curl -XPOST -d'{"s":"hello, world"}' localhost:8080/count