Skip to content

Latest commit

 

History

History
39 lines (24 loc) · 781 Bytes

README.md

File metadata and controls

39 lines (24 loc) · 781 Bytes

kitex_gorm

Introduce

A demo with Kitex and Gorm

  • Use thrift IDL to define RPC interface
  • Use kitex to generate code
  • Use Gorm and MySQL

IDL

This demo use thrift IDL to define RPC interface. The specific interface define in user.thrift

Code generation tool

This demo use kitex to generate code. The use of kitex refers to kitex

The kitex commands used can be found in Makefile

Gorm

This demo use Gorm to operate MySQL and refers to Gorm

How to run

Run mysql docker

cd bizdemo/kitex_gorm && docker-compose up

Run demo

cd bizdemo/kitex_gorm
go build -o kitex_gorm && ./kitex_gorm