Skip to content

NeroCube/go-url-shortening-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

🚀write a url shortening service with go

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages