New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

github.com/ZQCard/kbk-layout

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/ZQCard/kbk-layout

  • v0.1.0
  • Source
  • Go
  • Socket score

Version published
Created
Source

kbk-layout

方便快速启动服务, 统一项目模板,三键生成微服务

1.创建项目指定模板

假设项目目录为projectName

kratos new $(projectName) -r git@github.com:ZQCard/kbk-layout.git

2.初始化项目package

此处的projectName的值需要与第一步保持一致

make initProject PROJECT=$(projectName)

3.初始化项目服务

make initNewService ServiceUpperName=Store ServiceLowerName=store

总结

以上操作将生成目录为 projectName, 包含服务名称为StoreService的crud服务。

  • db: mysql, orm: gorm
  • cache:redis
  • trace:jaeger
  • registry && discovery: etcd
  • log: kratos/v2/log json格式
  • validate: protoc-gen-validate

pkg/utils: 常用函数包

其他注意事项

  1. 环境设置为dev,则为开发环境,可以根据该变量设定规则, 如 debug模式,打印sql

  2. 整形数值类型均用int64, proto转json的时候由于精度问题,会将int64类型转为string类型

  3. 接口文档在openapi.yaml中

  4. 本地开发以及docker部署文件为configs/config-dev.yaml,可在Dockerfile中自行更改

FAQs

Package last updated on 25 Jun 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc