Skip to content

Latest commit

 

History

History
53 lines (42 loc) · 1.36 KB

README.md

File metadata and controls

53 lines (42 loc) · 1.36 KB

douyin

Introduction

a demo backend of demo-douyin,the demo is divided into ? main sections.

Service Name Usage Framework protocol Path IDL
demoapi http interface kitex/gin http cmd/api
demouser user data management kitex/gorm protobuf cmd/core/user idl/user.proto

call relations

后续补充

catalog introduce

catalog introduce
pkg/constants constant
pkg/errno customized error number
pkg/middleware RPC middleware
pkg/tracer init jaeger
dal db operation
pack data pack
service business logic

Quick Start

1.Setup Basic Dependence

docker-compose up

2.Run User RPC Server

cd cmd/core/user
sh build.sh
sh output/bootstrap.sh

3.Run API Server

cd cmd/api
chmod +x run.sh
./run.sh

4.Jaeger

visit http://127.0.0.1:16686/ on browser.

API request

the doc of api