bitly

module
v0.0.0-...-7d27a18 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 17, 2023 License: GPL-3.0

README

bitly

Description

Simple URL shortener microservice using JSON REST API.

Installation

docker-compose up -d

Usage

curl -X POST -H "Content-Type: application/json" -d '{"url":"https://www.google.com"}' http://localhost:8000/urls
curl http://localhost:8080/urls/ytKEQIFa/

Run tests

make gen
go test ./... -v

Running tests can be slow since I use dockertest from Ory and it starts a new docker container for each test.

Directories

Path Synopsis
cmd
shortener command

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL