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 |
后续补充
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 |
docker-compose up
cd cmd/core/user
sh build.sh
sh output/bootstrap.sh
cd cmd/api
chmod +x run.sh
./run.sh
visit http://127.0.0.1:16686/
on browser.