Skip to content

arxdsilva/Stsuru

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Go Report Card

Stsuru

  • Simple link shortener;
  • Written in Go;

Obs: This directory contains a example server using the Shortener package that is the main application. So if you want to test It locally just use the Instalation guide and run the server.

Introduction

Implementation of a simple URL shortener in Golang. Intended to hash & display sortened URL's in a 'pure' Golang's server. It uses Gorilla's mux to handle server requests.

Instalation

Stable

If you need the latest stable version I recomend you to get our latest Release.

Go Get

  • If you enjoy, dont forget to Star the repository! :)

The easiest way is to install with go get (needed Golang 1.7 or later installed):

$ go get -u github.com/arxdsilva/Stsuru

Git Clone

As an alternative you can use also git clone:

  • SSH
$ git clone git@github.com:ArxdSilva/Stsuru.git
  • HTTPS
$ git clone https://github.com/ArxdSilva/Stsuru.git

Usage

$ cd (PATH)/github.com/arxdsilva/Stsuru

Tests

$ go test -v ./...

Start server

$ go run main.go

Open your browser and type: localhost:8080

Building packages

$ go build

LICENSE

Check our MIT license file for more info.

Credits

Made by @arxdsilva with great help of Tsuru team & contributors!

Extra

Want to implement a free PaaS & that is Open source? Check Tsuru!