Skip to content

maeldonn/goshorten

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Goshorten

(An URL shortener written in Go)

Running the server

To run the server you will need GNU make and Go SDK installed.

$ make run

Interact with the server

To create shortened URLs, you will need an HTTP client. I recommand using curl.

$ curl localhost:8080/slug

Useful commands

Create a new slug

$ curl http://localhost:8080 -d '{"slug": "goshorten", "url": "http://github.com/maeldonn/goshorten"}'

Use shortened URL

$ curl http://localhost:8080/goshorten

Delete a shortened URL

$ curl -X DELETE http://localhost:8080/goshorten

About

An URL Shortener written in Go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published