||2 months ago|
|pkg||2 months ago|
|public||2 months ago|
|.gitignore||2 months ago|
|LICENSE||2 months ago|
|README.md||2 months ago|
|go.mod||2 months ago|
|go.sum||2 months ago|
GoShort takes a request in the form of a URL and uses base62 encoding (a-z 0-9 [including caps]) to generate a URL safe short url for your domain.
curl -X GET "http://localhost:3000/api/v1/query?req=aws.com" will return
http://localhost:3000/t92YuM3dh9yL6MHc0RHa -- the service then stores this in a sqlite DB for
safe keeping caching and that route now acts as a permanent redirect to aws.com.
I was job hunting recently and one company asked me to make a URL shortner in whatever language I wanted. I decided I didn't want to work with them however, I did want to expand on the url shortner service I had already started writing.
- Change from base62 encoding to random/shorter values
- Set up proper caching with Redis since SQLlite may struggle with big writes/reads regarding the above todo item
- Build a UI as right now this is API exclusive (one whole route)