https://github.com/xatuke/url-shortner
for GCI
https://github.com/xatuke/url-shortner
Last synced: 3 months ago
JSON representation
for GCI
- Host: GitHub
- URL: https://github.com/xatuke/url-shortner
- Owner: xatuke
- License: apache-2.0
- Created: 2019-12-10T10:51:29.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-01-10T17:57:27.000Z (over 6 years ago)
- Last Synced: 2026-03-01T22:24:29.888Z (5 months ago)
- Language: Go
- Size: 7.37 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://gitter.im/JBossOutreach/gci)
# Go Url Shortner
## Prerequisites
- Have Go installed
- Have a working internet connection
## Run
- `go get https://github.com/speps/go-hashids`
- `go get https://github.com/gorilla/mux`
- `cd src`
- `go build main.go`
- `./main`
## Use:
### Create short url syntax
- localhost:8282/create/?longUrl=
- This outputs shortend url, use it to redirect to the original url
Google Code-in and the Google Code-in logo are trademarks of Google Inc.