All Projects → pantrif → url-shortener

pantrif / url-shortener

Licence: MIT License
A golang URL Shortener

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to url-shortener

delta
A modern file uploader + URL shortner written in node for your private cloud. low memory overhead + secure
Stars: ✭ 103 (+194.29%)
Mutual labels:  url-shortener
go-url
Url Shortener for use inside organisation
Stars: ✭ 18 (-48.57%)
Mutual labels:  url-shortener
purl
Purl (Petite URL) is an open source project with the goal of providing you with your own private URL shortener!
Stars: ✭ 47 (+34.29%)
Mutual labels:  url-shortener
laravel-url-shortener
URL shortener for Laravel
Stars: ✭ 26 (-25.71%)
Mutual labels:  url-shortener
mpngin
A simple and fast URL shortener with built in stats.
Stars: ✭ 31 (-11.43%)
Mutual labels:  url-shortener
klein
the minimalist URL shortener
Stars: ✭ 40 (+14.29%)
Mutual labels:  url-shortener
FireShort
A URL Shortener made using React.JS and Google Firestore
Stars: ✭ 29 (-17.14%)
Mutual labels:  url-shortener
Base62
PHP Base62 encoder and decoder for integers and big integers with Laravel 5 support.
Stars: ✭ 16 (-54.29%)
Mutual labels:  url-shortener
gow
URL shortener for evlfctry.pro
Stars: ✭ 29 (-17.14%)
Mutual labels:  url-shortener
onurl
URL Shortener created w/ Next.js, TypeScript, Mongoose
Stars: ✭ 48 (+37.14%)
Mutual labels:  url-shortener
yaus
Deprecated URL shortener
Stars: ✭ 26 (-25.71%)
Mutual labels:  url-shortener
zone
A URL shortener / note sharing service.
Stars: ✭ 18 (-48.57%)
Mutual labels:  url-shortener
gobo.icu
URL Shortener For Scratch
Stars: ✭ 14 (-60%)
Mutual labels:  url-shortener
dwarf
A O(1) URL shortener microservice backed by redis and gRPC communication.
Stars: ✭ 33 (-5.71%)
Mutual labels:  url-shortener
bitlyshortener
High-volume Bitly V4 URL shortener with in-memory cache
Stars: ✭ 20 (-42.86%)
Mutual labels:  url-shortener
1y
A template project to build a short URL manager with Eleventy
Stars: ✭ 68 (+94.29%)
Mutual labels:  url-shortener
outbound-go
URL shortener and Redirection As A Service
Stars: ✭ 21 (-40%)
Mutual labels:  url-shortener
gas-url-shortener
A URL Shortening service powered by Google Apps Script.
Stars: ✭ 43 (+22.86%)
Mutual labels:  url-shortener
idy
👓 An ID obfuscator for ActiveRecord
Stars: ✭ 15 (-57.14%)
Mutual labels:  url-shortener
supaflare
URL shortener / redirection service powered by Supabase, Cloudflare Workers, Workers KV and Cloudflare Pages.
Stars: ✭ 51 (+45.71%)
Mutual labels:  url-shortener

Build Status Go Report Card GoDoc

url-shortener

A golang URL Shortener with mysql support.
Using Bijective conversion between natural numbers (IDs) and short strings

Installation

Using docker compose

docker-compose up --build

Using an existing mysql

Edit .env file to add connection strings for mysql
Run mysql_init/create_table.sql

go run main.go

Usage

Create short url

curl -X POST -H "Content-Type:application/json" -d "{\"url\": \"http://www.google.com\"}" http://localhost:8081/shorten

Expected output

{"url":"localhost:8081/3"}

Redirect

curl -v localhost:8081/3

Output

*   Trying ::1...
* TCP_NODELAY set
* Connected to localhost (::1) port 8081 (#0)
> GET /3 HTTP/1.1
> Host: localhost:8081
> User-Agent: curl/7.54.0
> Accept: */*
>
< HTTP/1.1 303 See Other
< Location: http://www.google.com
< Date: Mon, 04 Jun 2018 08:03:13 GMT
< Content-Length: 48
< Content-Type: text/html; charset=utf-8
<
<a href="http://www.google.com">See Other</a>.

Licence

This module is open-sourced software licensed under the MIT license

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].