Git Product home page Git Product logo

shorturl's Introduction

ShortUrl

A simple asp.net 5 application that allows a client to post to a domain returning a shortened url that redirects to the given url. The fozie.net endpoint is avalible for public use!

The idea is to be able to copy urls and shorten them quickly through keyboard bindings. The current bash script will set your clipboard content to the shorten url

Client Setup

Linux

This isn't a set tutorial for linux operating systems as this mainly depends on what desktop enviorment you are using. However, simply make the bash script executable and bind a key to it.

You will need xclip for this to work

MacOS

Go to the MacOS Wiki Page

Windows

Simply double click Install.vbs and you'll be on your way! It'll create a shortcut on your desktop that is default binded to (CTRL+ALT+C). To change this simply open the propeties menu.

git clone https://github.com/Isaac-Duarte/ShortUrl.git
cd ShortUrl
cscipt Install.vbs

API Setup

Hey Postgres version

In order to run this api you need to have .NET 5 installed. (Windows, MacOS, Linux)

Quick Start

git clone https://github.com/Isaac-Duarte/ShortUrl.git
cd ShortUrl
dotnet build
bin/Debug/net5.0/ShortUrl

Configuration

  • The appsettings.json allows to change the database connection string.
  • The Urls part of the configuration is for binding to domains/ip addresses.

Note

By default only SQLite will work, however if you want to use MySQL, Postgree, etc add the proper nuget packages. Database Providers

Credits

Fred Duarte - Windows support

Isaac Duarte - API, Linux & MacOS Support.

shorturl's People

Contributors

isaac-duarte avatar msft-fduarte avatar

Stargazers

Andres avatar Fred Duarte avatar X avatar

Watchers

James Cloos avatar Fred Duarte 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.