urlCutter

command module
v0.0.0-...-086bdb0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2022 License: MIT Imports: 1 Imported by: 0

README

urlCutter

A simple web API for link shortening

GitHub GitHub go.mod Go version

Set Up

Docker Compose generate short url
dokcer-compose up
Manual generate short url
  1. edit database config in ./configs/database.json
  2. use psql -U postgres -f db.sql for create database
  3. use go run . to start app

Usage

Endpoint Method Params Description
/generate POST long_url: <str> Generates a short url
/:short_url GET None Find long url and redirect
Request
generate short url
Result
redirect to long  url

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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