Skip to content

Make simple JSON-struct services default in micro new command#2890

Open
asim wants to merge 2 commits intomasterfrom
claude/assess-framework-priority-AMW4q
Open

Make simple JSON-struct services default in micro new command#2890
asim wants to merge 2 commits intomasterfrom
claude/assess-framework-priority-AMW4q

Conversation

@asim
Copy link
Member

@asim asim commented Mar 12, 2026

No description provided.

claude added 2 commits March 12, 2026 08:30
The README and examples teach a simple pattern using plain Go structs
and JSON encoding, but `micro new` only generated protobuf services
requiring protoc. This mismatch was the biggest DX gap for new users.

Now `micro new helloworld` generates a single-file service using plain
Go structs — no protobuf, no code generation, no external tools. Just Go.

Use `micro new --proto helloworld` for the previous protobuf behavior.

- Add simple mode templates (main.go, Makefile, README, go.mod)
- Make simple mode the default, add --proto flag for protobuf
- Add tests for template parsing and service generation
- Move protoc check to only run when --proto is used

https://claude.ai/code/session_01VwPw7hMaVhFfT69oCE6x1D
- Add README for multi-service example explaining modular monolith pattern
- Add pubsub-events example with broker and event streaming demos
- Add grpc-integration example showing gRPC server/client with JSON codec
- Update examples/README.md to replace "Coming Soon" with real examples
- Add tests for core packages: micro.go and service/service.go
- Add micro doctor diagnostic command (Go, registry, ports, NATS, config)
- Fix micro gen templates: replace TODO stubs with real implementation logic
- Add consul and etcd registry support to micro mcp serve/test commands
- Make file watcher configurable: extensions, excludes, go.mod watching
- Add watcher tests

https://claude.ai/code/session_01VwPw7hMaVhFfT69oCE6x1D
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants