Skip to content

Latest commit

 

History

History
46 lines (31 loc) · 2.17 KB

File metadata and controls

46 lines (31 loc) · 2.17 KB

moke-kit

Go Report Card Go Reference Release

English | 中文

Go toolkit for assembling game / microservice backends (gRPC, HTTP gateway, TCP, Mongo, Redis, NATS) with uber/fx — like LEGO.

Quick start

Use any AI coding agent that supports Agent Skills (Cursor, Claude Code, Codex, Windsurf, …):

  1. Open this repository in your AI tool.
  2. Ask it to create a game, for example:
    • create a game based on moke-kit
    • use the create-game skill
    • /create-game (if your tool supports skill slash commands)
  3. Give a Go module path and service name (e.g. github.com/example/arena, arena).

The create-game skill scaffolds the game, starts local Redis/Mongo/NATS, and runs the service.

Needs on the machine: Go (see go.mod), Docker, buf.

What you get

Piece Role
fxmain fxmain.Main(...) app entry
server gRPC / grpc-gateway / zinx (TCP·WS·KCP)
orm Mongo, Redis/Dragonfly, GORM
mq NATS + local MQ
3rd Auth, IAP, Agones, …

Skills live under .agents/skills/ (Agent Skills layout). Reference apps: moke-game/game, moke-game/platform. Version matrix: COMPATIBILITY.md.

Next steps

License

LICENSE