Skip to content

Latest commit

 

History

History
43 lines (33 loc) · 849 Bytes

README.md

File metadata and controls

43 lines (33 loc) · 849 Bytes

Go URL SHORTENING SERVICE

Running the exmaple

To run this exmaple, from the root of this project:

docker-compose up

Hello Service

curl -X GET "http://localhost:8000/"

Create your own short url

curl -H "Content-Type: application/json" -d '{"original_url":"https://github.com/NeroCube"}' http://localhost:8000/urls

Redirect to your original url with tinyURL

curl -X GET "http://localhost:8000/{tinyURL}"

Update all dependencies with glide

glide update --all-dependencies --resolve-current

To do

  • Basic Restful API
  • Dockerize project
  • Add Redis cache makes access performance better
  • Use PostgreSQL as long-term storage
  • Hash URLs to make them shorter
  • Go HTTP Redirect
  • Unit test
  • Package Management for Golang
  • Refactor
  • License