Skip to content

adityastic/TinyURL-Service-Fabric

Repository files navigation

TinyURL

.NET CI Codacy Badge

This is an implimentation of Tiny URL using Azure Service Fabric

Deploy it on your Azure

Deploy to Azure

API Doc

API Description Returns Parameters
/createURL Create ShortURL for a link An object with the shortURL.
eg: In JSON :
{ "shortUrl" : "http://localhost:8471/c" }
Form Parameters:
  - URL : String (URL that you want to convert)
  - partition : int (partition id to fetch a specific reliable collection)
/{shortURL} Redirects you to the stored URL A Redirect to the stored URL. Route/Path Parameter:
  - shortURL : String (short url returned after /createURL API)
Query Parameter:
  - partition : int (partition id to fetch a specific reliable collection)

Pre-Requisites

  1. Visual Studio
  2. Service Fabric Development Environment

Setup Environment

  1. git clone https://github.com/adityastic/TinyURL-Service-Fabric to your desired location. The Directory should look something like this: image
  2. Double-CLick on TinyURL.sln or Open this folder using Visual Studio.

Running Tiny URL on local dev cluster

Note: Make sure you have a minimum 5 Node Service Fabric Cluster on your machine. Checkout Setting up a Development Environment.

  1. Right-Click on the TinyURL Project.
  2. Select Debug.
  3. Select Start new instance.

Image for reference: image

License

This project is Free and Open Source software. The project is licensed under the MIT.

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •