A very basic URL shortener written in Go using Gin, GORM, and SQLite3.
To run this repository clone it locally.
git clone https://github.com/rayhanadev/go-url-shortener
cd go-url-shortener
To start the server run the following command:
go run main.go
Afterwards, you can use the following endpoints:
POST /register
POST /login
POST /logout
POST /shorten
GET /:shortUrl