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 Fix test url with new update 1 year ago
pkg Fix test url with new update 1 year ago
public run prettier (lint) 1 year ago
.gitignore Add database context 1 year ago
LICENSE + License 1 year ago
README.md README update 1 year ago
go.mod Add database context 1 year ago
go.sum Add database context 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

  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)