forked from grumbulon/GoShort
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.
|
1 year ago | |
---|---|---|
pkg | 1 year ago | |
public | 1 year ago | |
.gitignore | 1 year ago | |
LICENSE | 1 year ago | |
README.md | 1 year ago | |
go.mod | 1 year ago | |
go.sum | 1 year ago |
README.md
GoShort
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.
Example:
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.
Why?
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.
Roadmap
- 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)