Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Ursho | 113 | 8 months ago | June 25, 2017 | 2 | mit | Go | ||||
URL Shortener Service in Go | ||||||||||
Kurz.go | 75 | 5 years ago | April 06, 2012 | 1 | mit | HTML | ||||
a url shortener made using go and redis | ||||||||||
Nnmm | 53 | 5 years ago | 2 | other | PHP | |||||
A super tiny pastebin/url minifier "microservice" | ||||||||||
Ghurl.github.io | 25 | 7 years ago | 1 | mit | HTML | |||||
:page_with_curl: URL shortener powered by GitHub pages & repos | ||||||||||
Mew | 10 | 4 years ago | 1 | gpl-3.0 | JavaScript | |||||
:sparkles: :cat: no-bullshit url shortening with node.js | ||||||||||
Mongurl | 6 | 14 years ago | ||||||||
URL shortener using Bubble.py and MongoDB | ||||||||||
Mushroom | 6 | 4 years ago | mit | PHP | ||||||
:mushroom: expand links to their final destination | ||||||||||
Littlelink | 5 | 6 years ago | JavaScript | |||||||
URL-Shortener with node.js, express and redis! | ||||||||||
Unshorten | 3 | 2 years ago | cc0-1.0 | Shell | ||||||
Expands a short URL & displays the original URL. | ||||||||||
Goog_url_shortener | 2 | 11 years ago | bsd-3-clause | Dart | ||||||
Simple url shortener using google shortener api and curl |
Run with Docker
docker-compose up
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
}
}
..
You can install it using 'go get' or cloning the repository.
# fetches the program
go get github.com/douglasmakey/ursho
# move to the app's directory
cd $GOPATH/src/github.com/douglasmakey/ursho
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
Run glide install
in the folder.
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"
}
}
..
..
..
A short snippet describing the license (MIT, Apache, etc.)