All Projects → douglasmakey → ursho

douglasmakey / ursho

Licence: MIT license
URL Shortener Service in Go

Programming Languages

go
31211 projects - #10 most used programming language
Dockerfile
14818 projects

Projects that are alternatives of or similar to ursho

gShort
URL Shortener without all the crap
Stars: ✭ 80 (-32.2%)
Mutual labels:  url-shortener, shortener, shorten-urls
YOURLS
🔗 The de facto standard self hosted URL shortener in PHP
Stars: ✭ 9,007 (+7533.05%)
Mutual labels:  url-shortener, shortener, shorten-urls
urlzap
⚡️ Your own static URL shortener
Stars: ✭ 57 (-51.69%)
Mutual labels:  url-shortener, shortener, shorten-urls
small-sh
Um encurtador de URL's gratuito e Open source. Torne suas URL's um tanto pequenas forma rápida e gratuita
Stars: ✭ 30 (-74.58%)
Mutual labels:  shortener, shorten-urls
ruby-bitly
A simple bit.ly ruby client to shorten URLs, expand or get number of clicks on a bitlink.
Stars: ✭ 17 (-85.59%)
Mutual labels:  shortener, shorten-urls
bifrost
🌉 The rainbow bridge. URL shortener for Vercel.
Stars: ✭ 28 (-76.27%)
Mutual labels:  shortener, shorten-urls
urlshortener-rs
A very-very simple url shortener for Rust
Stars: ✭ 34 (-71.19%)
Mutual labels:  shortener, shorten-urls
ksana.in
✂️ Layanan pemendek tautan yang mudah, gratis & tanpa iklan
Stars: ✭ 186 (+57.63%)
Mutual labels:  url-shortener, shortener
1y
A template project to build a short URL manager with Eleventy
Stars: ✭ 68 (-42.37%)
Mutual labels:  url-shortener, shorten-urls
yii2-minify-url
Project on YII2 framework for create short url (url shortener)
Stars: ✭ 15 (-87.29%)
Mutual labels:  url-shortener, shortener
Base62
PHP Base62 encoder and decoder for integers and big integers with Laravel 5 support.
Stars: ✭ 16 (-86.44%)
Mutual labels:  url-shortener, shortener
dwarf
A O(1) URL shortener microservice backed by redis and gRPC communication.
Stars: ✭ 33 (-72.03%)
Mutual labels:  url-shortener, shortener
Kutt
Free Modern URL Shortener.
Stars: ✭ 5,480 (+4544.07%)
Mutual labels:  url-shortener, shorten-urls
Sleeky
🎨 A sleek and simple frontend & backend theme for YOURLS
Stars: ✭ 245 (+107.63%)
Mutual labels:  url-shortener
laravel-bitly
Laravel package for generating bitly url
Stars: ✭ 72 (-38.98%)
Mutual labels:  url-shortener
Golang Url Shortener
URL Shortener written in Golang using Bolt DB or Redis. Provides features such as Deletion, Expiration, OAuth and is of course Dockerizable.
Stars: ✭ 240 (+103.39%)
Mutual labels:  url-shortener
Dogbin
The sexiest pastebin and url shortener ever
Stars: ✭ 237 (+100.85%)
Mutual labels:  url-shortener
Breviare
Small URL shortener made with the MERN Stack
Stars: ✭ 16 (-86.44%)
Mutual labels:  url-shortener
Urlhub
URL shortener web application based on the Laravel PHP Framework.
Stars: ✭ 217 (+83.9%)
Mutual labels:  url-shortener
Sharex Upload Server
AKA ShareS - Feature full & Stable ShareX and file server in node. Includes images, videos, code, text, markdown rendering, password protected uploads, logging via discord, administration through Discord, url shortening, and a full front end. Use standalone or via reverse proxy
Stars: ✭ 180 (+52.54%)
Mutual labels:  url-shortener

Synopsis

URL Shortener Service

Run

Run with Docker

docker-compose up

Code Example

Using CURL Generate shortener\

$ curl -H "Content-Type: application/json" -X POST -d '{"url":"www.google.com"}' http://localhost:8080/encode/
<!-- Response: -->
<!-- {"success":true,"response":"http://localhost:8080/1"} -->

Redirect Open url in your browser http://localhost:8080/bN

OR

curl http://localhost:8080/1

Get info for url shortener
curl http://localhost:8080/info/1

Response:

{
 "success":true,
 "response": {
    "url":"www.google.com",
    "visited":true,
    "count":1
 }
}

Motivation

..

Installation

You can install it using 'go get' or cloning the repository.

Use go get

# fetches the program
go get github.com/douglasmakey/ursho

# move to the app's directory
cd $GOPATH/src/github.com/douglasmakey/ursho

Cloning the repo

We'll use github.com/user as our base path. Create a directory inside your workspace in which to keep source code:

mkdir -p $GOPATH/src/github.com/douglasmakey cd "$_"

Clone repository or download and unrar in folder
git clone https://github.com/douglasmakey/ursho.git

Use GLIDE Package Management for Golang, for installation all packages

https://github.com/Masterminds/glide

Run glide install in the folder.

Select method of persistence

select the method of persistence, in which you going to work.
storage := &storages.Postgres{}

If selected Postgresql as Storage, create database

CREATE DATABASE ursho_db;

Add your config for the method of persistence and other options in file config.json\

{
  "server": {
    "host": "0.0.0.0",
    "port": "8080"
  },
  "options": {
    "prefix": "http://localhost:8080/"
  },
  "posgres": {
    "user": "postgres",
    "password": "mysecretpassword",
    "db": "ursho_db"
  }
}

API Reference

..

Tests

..

Contributors

..

License

A short snippet describing the license (MIT, Apache, etc.)

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].