GithubHelp home page GithubHelp logo

pelleravn / gosharp Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 787 KB

A simple Go short link service written in C#

License: MIT License

C# 76.29% HTML 16.44% CSS 3.18% JavaScript 1.20% Dockerfile 2.88%
url-shortener dotnet-core docker

gosharp's Introduction

GoSharp

A simple Go short link service, written in .NET Core.

This is still work in progress, but should work just fine.

Setup

To setup, you might need a combination of an A-record, and a local search domain to respond correctly. You could set it up to react to "go", and forward it to the service.

You should probably research it some more yourself.

Usage

Once you have set it up, you can add/edit a short URL with go/edit/some-short-url, or just go (pun intended) to go/ and it will create a random address for you. If you go to an address that doesn't exist, it will ask where you want it to go.

example

To be redirected to the URL, visit go/some-short-url.

If you need to see all links created, and how many times they have been visited, see go/links.

Run in Docker

To run inside of a Docker container, build it from Dockerfile (or docker-compose.yml), and run it.

Storage of saved links will, by default, be stored at data. This can be changed by setting the DATA environment variable, like docker run -e DATA="/otherdatapath" gosharp. Use this to mount a volume to persist the links.

The container port is 80.

gosharp's People

Contributors

pelleravn avatar

Stargazers

 avatar

Watchers

 avatar  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.