Skip to content

v0ker/ShortURL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ShortURL

This is a simple URL shortener written in Go using MySQL and Redis.

Installation

  1. Clone the repository
  2. Execute sql script in data/init.sql
  3. run
> go build cmd/app
> app -config configs/config.yaml  
  1. create a new short url
curl -X POST \
  https://127.0.0.1:8090/api/url \
  -H 'Content-Type: application/json' \
  -d '{
	"url":"https://github.com/v0ker/ShortURL",
	"ttl": 300
}'
  1. Open the short url from action 3 in browser

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published