https://github.com/stevehobbsdev/buf-grpc-example
https://github.com/stevehobbsdev/buf-grpc-example
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/stevehobbsdev/buf-grpc-example
- Owner: stevehobbsdev
- Created: 2024-11-06T15:19:26.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-11-06T16:40:15.000Z (over 1 year ago)
- Last Synced: 2024-12-31T20:15:56.765Z (over 1 year ago)
- Language: Go
- Size: 5.53 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Weather Service
A gRPC-based weather service providing weather information using Protocol Buffers and Connect RPC.
## Features
- Temperature readings
- Weather descriptions
- Location data
- Humidity levels
- Wind speed information
## Project Structure
├── proto/ # Protocol Buffer definitions
├── gen/ # Generated code
├── handler/ # Service implementation
├── interceptors/ # Logging middleware
└── main.go # Entry point
## Getting Started
### Prerequisites
- Go 1.16+
- buf CLI
### Available Commands
```bash
# Generate code from protos
make generate
# Clean up the generated code
make clean
# Build the project
make build
# Run the server
make run
```
### Running the Service
Start the server:
`make run`