2022-09-27 15:05:16 +00:00
2022-08-27 16:04:27 +02:00
2022-08-28 15:07:46 +02:00
2022-08-27 14:00:41 +02:00
2022-08-27 14:00:41 +02:00
2022-08-28 15:01:02 +02:00
2022-08-28 15:07:46 +02:00
2022-08-26 21:10:50 +02:00
2022-08-26 21:10:50 +02:00
2022-08-26 21:10:50 +02:00
2022-08-26 21:10:50 +02:00
2022-09-27 15:05:16 +00:00

5feet11

A scalable URL shortener.

Prepare

  • ScyllaDB
  • Prometheus*

*: Optional

Run

Update the config at etc/fivefeeteleven-api.yaml.

# Docker
docker run -it $(docker build -q .)

# Compile
make build && ./5feet11

Usage

# Shorten a URL
curl -X POST -H "Content-Type: application/json" \
  -d '{"longUrl":"https://news.ycombinator.com"}' \
  http://localhost:5111/api/v1/links

# Shorten a URL that expires after N seconds
curl -X POST -H "Content-Type: application/json" \
  -d '{"longUrl":"https://news.ycombinator.com", "expiresAfter": 30}' \
  http://localhost:5111/api/v1/links

# Expand the URL
curl -iL http://localhost:5111/{id}

# Get information of a specific URL
curl -iL http://localhost:5111/api/v1/links/{id}
Description
A scalable URL shortener
Readme 81 KiB
Languages
Go 92%
Dockerfile 7%
Makefile 1%