You can not 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 3bbddf4328 make app get proper base url from web request 1 week ago
pkg make app get proper base url from web request 1 week ago
public run prettier (lint) 2 weeks ago
.gitignore move ORM logging from stdout to log file 2 weeks ago
LICENSE + License 1 week ago
README.md README update 2 weeks ago
go.mod Cache hits and misses now work, improve caching overall, and messed with encoding further 1 week ago
go.sum Cache hits and misses now work, improve caching overall, and messed with encoding further 1 week 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

  1. Change from base62 encoding to random/shorter values
  2. Set up proper caching with Redis since SQLlite may struggle with big writes/reads regarding the above todo item
  3. Build a UI as right now this is API exclusive (one whole route)