urltinyizer

command module
v0.0.0-...-d3d161b Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2023 License: MIT Imports: 14 Imported by: 0

README

URLTINYIZER

master

URLTINYIZER is a REST API written in Go that provides the following functionality:

API

  • Endpoint for creating short url

A POST request to /shorten endpoint with a JSON payload containing the long_url as a string returns a shortened url.

  • Endpoint for redirecting users

A GET request to /{shortURL} redirects the user to the original long url and increments the number of hits.

  • Stats endpoint

A GET request to /{shortURL}/stats returns the number of times a short url has been used.

The application runs on two Docker containers: one for the PostgreSQL database and the other for the application itself. To run the application, simply run make run.

Commands

Run make help to see the available commands.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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