https://github.com/icowan/shorter
短链小工具
https://github.com/icowan/shorter
docker go go-kit golang kubernetes shoter
Last synced: about 2 months ago
JSON representation
短链小工具
- Host: GitHub
- URL: https://github.com/icowan/shorter
- Owner: icowan
- Created: 2019-11-14T15:56:04.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-02-25T03:13:27.000Z (over 2 years ago)
- Last Synced: 2025-03-27T00:13:46.217Z (2 months ago)
- Topics: docker, go, go-kit, golang, kubernetes, shoter
- Language: Go
- Homepage: https://r.nsini.com/
- Size: 700 KB
- Stars: 206
- Watchers: 3
- Forks: 37
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 短域名服务
一个简单的短域名生成跳转服务

## 演示
演示地址: [https://r.nsini.com](https://r.nsini.com)
该演示平台部署在 开普勒云平台上,若您有兴趣可能访问
- GitHub: [https://github.com/kplcloud/kplcloud](https://github.com/kplcloud/kplcloud)
- Demo: [https://kplcloud.nsini.com/about.html](https://kplcloud.nsini.com/about.html)## 安装说明
平台后端基于[go-kit](https://github.com/go-kit/kit)、前端基于[ant-design](https://github.com/ant-design/ant-design)框架进行开发。
后端所使用到的依赖全部都在[go.mod](go.mod)里,前端的依赖在`package.json`,详情的请看`yarn.lock`,感谢开源社区的贡献。
前端: [https://github.com/icowan/shorter-view](https://github.com/icowan/shorter-view)
### 安装教程
该服务支持多种方式启动
- docker-compose: `$ cd install/docker-compose/ && docker-compose up`
- kubernetes: `$ kubectl apply -f install/kubernetes/`
- localhost: `$ make run`### 依赖
- Golang 1.13+ [安装手册](https://golang.org/dl/)
- Docker 18.x+ [安装](https://docs.docker.com/install/)
- Mongo/Redis (主要用于存储短链信息)## 快速开始
1. 克隆
```
$ mkdir -p $GOPATH/src/github.com/icowan
$ cd $GOPATH/src/github.com/icowan
$ git clone https://github.com/icowan/shorter.git
$ cd shorter
```2. make 启动
```
$ make run
```3. transport
- http: 8080
- gRPC: 8082### 支持我

