1 Star 0 Fork 0

Musker / apiTools

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

ApiTools是一个集成各种常用工具,为开发者提供免费、便捷的API接口,方便开发者可以通过API方式快速获取数据

QQ交流群: 565070560

开发

技术栈:

开发语言: go 1.13
web框架: gin 
关系型数据库: mysql 5.7
nosql数据库: redis 5.x

部署

需要具备go语言环境

1.编译代码

$ git clone https://github.com/spdir/apiTools.git
$ go env -w GOPROXY=https://goproxy.io,direct
$ cd apiTools

> make编译
$ make clean       // 清理
$ make build       // 编译二进制

> 编译并打包
$ make pack     // 本地环境打包
$ make pack-linux-amd64   // linux amd64 环境交叉编译打包


> 手动编译(交叉编译)
$ GOOS=linux GOARCH=amd64 go build -o apiTools main.go

2.构建docker image

1) 修改 `config` 目录下配置文件
或者不修改,通过file映射、docker ENV 去设置,程序会自动读取

2) 进行编译和打包
$ make pack-linux-amd64

3) 构建docker image
$ export apiTools_version=0.1
$ docker build -t apitools:$apiTools_version .

4) help
$ docker run -it --rm apitools:$apiTools_version help

5) run
$ docker run -d  -p 8081:8081 --env-file config.env --name apiTools apitools:$apiTools_version

官网地址: https://api.devopsclub.cn

MIT License Copyright (c) 2019 Musker.Chao Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

ApiTools是一个集成各种常用工具,为开发者提供免费、便捷的API接口,方便开发者可以通过API方式快速获取数据 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/spdir/apiTools.git
git@gitee.com:spdir/apiTools.git
spdir
apiTools
apiTools
master

搜索帮助