https://github.com/rayhanadev/go-url-shortener
A very basic URL shortener written in Go using Gin, GORM, and SQLite3.
https://github.com/rayhanadev/go-url-shortener
Last synced: 15 days ago
JSON representation
A very basic URL shortener written in Go using Gin, GORM, and SQLite3.
- Host: GitHub
- URL: https://github.com/rayhanadev/go-url-shortener
- Owner: rayhanadev
- Created: 2024-06-20T09:17:56.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-20T10:11:44.000Z (about 1 year ago)
- Last Synced: 2025-05-15T21:47:46.994Z (about 1 month ago)
- Language: Go
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Go URL Shortener
A very basic URL shortener written in Go using Gin, GORM, and SQLite3.
## Installation
To run this repository clone it locally.
```sh
git clone https://github.com/rayhanadev/go-url-shortener
cd go-url-shortener
```## Usage
To start the server run the following command:
```sh
go run main.go
```Afterwards, you can use the following endpoints:
```
POST /register
POST /login
POST /logout
POST /shorten
GET /:shortUrl
```