You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|grumbulon c7be1b9ad0||10 months ago|
|pkg||10 months ago|
|public||10 months ago|
|.gitignore||10 months ago|
|LICENSE||10 months ago|
|README.md||10 months ago|
|go.mod||10 months ago|
|go.sum||10 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)