Git Product home page Git Product logo

go-shorten's Introduction

GoDoc Go Report Card license

go-shorten: URL Shortener Service

This service stores and serves URL redirects. I stole the idea from when I worked at LinkedIn who apparently stole it from Google.

Why?

By itself, a shared URL shortening service is stupid useful. Want to visit a thing? Type go/thing into your browser and hit enter.

It is honestly little things like this make everyone's life far easier.

How do people use this?

Where I work we generally follow a pattern of go/$thing should take you to whatever $thing is. Here are a few examples:

  • Jira is at go/jira
  • Github is at go/gh, go/github, go/g, etc
  • Our monitoring dashboards are at go/graphs, go/dashboards, etc

It is perfectly fine to have duplication, the goal is that all the different ways folks think will all be taken to the right place.

You can also do fancier things like:

  • go/pr/1234 or go/#1234 will take you directly to PR #1234
  • go/jira/ABC-1234, go/ABC-1234 to go directly to a specific jira issue
  • go/calendar/$name will take you to a person's calendar

Okay, how do I set this up?

Roughly, to make this work:

  1. Build and host go-shorten somewhere
  2. Setup a DNS entry to point to it (e.g. go.corp.example.com)
  3. Configure any clients you have to include corp.example.com in their DNS search suffix list
  4. Troubleshoot :P

Credits

I forked this project from https://github.com/didip/shawty because I liked how they laid out their project but I wanted to add a bunch more features and productionize it a bit more than was within scope for the original project.

go-shorten's People

Contributors

didip avatar thomaso-mirodin avatar thomasdesr avatar jengler avatar tanerax avatar amerine avatar skinp avatar

Watchers

James Cloos avatar

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.