Giter Site home page Giter Site logo

go's Introduction

A "go" short-link service

Background

The first time I encountered "go" links was at Google. Anyone on the corporate network could register a URL shortcut and it would redirect the user to the appropriate page. So for instance, if you wanted to find out more about BigTable, you simply directed your browser at http://go/bigtable and you would be redirected to something about the BigTable data storage system. I was later told that the first go service at Google was written by Benjamin Staffin to end the never-ending stream of requests for internal CNAME entries. He described it as AOL keywords for the corporate network. These days if you go to any reasonably sized company, you are likely to find a similar system. Etsy made one after seeing that Twitter had one ... it's a contagious and useful little tool. So contagious, in fact, that many former Googlers that I know have built or contributed to a similar system post-Google. I am no different, this is my "go" link service.

One slight difference between this go service and Google's is that this one is also capable of generating short links for you.

Installation

This tool is written in Go (ironically) and can be easily installed and started with the following commands.

GOPATH=`pwd` go install github.com/kellegous/go
bin/go

By default, the service will put all of its data in the directory data and will listen to requests on the port 8067. Both of these, however, are easily configured using the --data=/path/to/data and --addr=:80 command line flags.

DNS Setup

To get the most benefit from the service, you should setup a DNS entry on your local network, go.corp.mycompany.com. Make sure that corp.mycompany.com is in the search domains for each user on the network. This is usually easily accomplished by configuring your DHCP server. Now, simply typing "go" into your browser should take you to the service, where you can register shortcuts. Obviously, those shortcuts will also be available by typing "go/shortcut".

Using the Service

Once you have it all setup, using it is pretty straight-forward.

Create a new shortcut

Type go/edit/my-shortcut and enter the URL.

Visit a shortcut

Type go/my-shortcut and you'll be redirected to the URL.

Shorten a URL

Type go and enter the URL.

go's People

Contributors

adamallred avatar kellegous avatar nshttpd avatar sophialyj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

go's Issues

External database backend?

Would love to be able to set this up in an HA configuration, and the dependency on local storage makes this difficult. Would it be possible to add an option to use an external RDBMS such as Postgres or MySQL? Happy to contribute this myself, too, just new to Go and would need some pointing at where to make changes.

How to configure

You wrote in the README:
Make sure that corp.mycompany.com is in the search domains for each user on the network. This is usually easily accomplished by configuring your DHCP server.

How do I do that? I'm using Amazon Route53 and have it serving on the long domain (go.corp.example.com) but how do I allow users to just type go in their browser?

Installation Problems

I tried using the installation directions on a Raspberry Pi (running stretch) and it did not work:

$ GOPATH=`pwd` go install github.com/kellegous/go
can't load package: package github.com/kellegous/go: cannot find package "github.com/kellegous/go" in any of:
...

I then cloned the repo and tried using the Makefile. First run of make found several problems with sass:

  • The current version does not recognize --no-cache as an option
  • The --sourcemap=none option is now --no-source-map

Next closure-compiler does not seem to be the binary for any closure compiler I could find. I installed google-closure-compiler and updated the binary name to that.

Integrating with our go links Chrome extension

We recently open-sourced our own go links implementation, Trotto. We're in the process of open-sourcing the Chrome extension that we built to make it easy to set up the go/somewhere magic, with or without DNS.

Right now, the extension works with the instance we manage at https://trot.to/_/auth/login, but there's no reason the extension couldn't work with other go links backends. Would you be interested in working with us to make the extension work with this go links implementation?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.