Tinyurl
tinyurl: a url shortening service
Install / Use
/learn @tinyurl/TinyurlREADME
TinyURL - Make Personal URL Shortening Service Easy
<p align="center"> <a href="https://adolphlwq.xyz" target="_blank"> <img src="assets/tinyurl.gif" width="700px"> <br> Live Demo </a> </p> <p align="center">a url shorten web service written by Golang, Vue and Gin.</p>Requisites
- Golang(1.12+)
- MySQL/Sqlite3
- make
- Docker
Quick Start
- clone project to GOPATH
git clone https://github.com/tinyurl/tinyurl.git $GOPATH/src/github.com/tinyurl/tinyurl
- build binary
make
- change config in
default.properties - run binary
./tinyurl -config default.properties
- open index.html in
frontend/with broswer - default Swagger API url is
http://0.0.0.0:8877/swagger/index.html
TODOs
- [X] validate input url format
- [X] improve random generate string algorithm
- [X] use math/rand.Read instead math/rand.Intn func
- [X] use logrus replace golang log lib
- [X] reserch wrk
- [X] add test case
- [ ] Backend
- [X] data type support multi database(index in sender)
- [X] adjust short path generating algorithm
- [X] Swagger for api management
- [ ] custom short url
- [ ] API rate
- [ ] Admin account?
- [ ] count each url parse time (high concurrent situation)
- [ ] Frontend
- [ ] qrcode support
Reference
Related Skills
node-connect
342.5kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
85.3kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
342.5kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
342.5kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
