Skip to content

URL shortener allows you to create shortened URLs and record how many times the short URL was visited.

Notifications You must be signed in to change notification settings

stanleynik/URLShortener

Repository files navigation

URLShortener

URL shortener allows you to create shortened URLs and records how many times the short URL was visited.

URLShortener.DataAccess project is using Entity Framework Code First Approach to create the URLShortenerContext that is used for the API.

To generate the database you need to install the EF dotnet tools that allows you to create and run migrations:

  • Install the EF dotnet tools executing this command in Package Manager Console dotnet tool install --global dotnet-ef
  • To create and run migrations use: dotnet ef migrations add <> dotnet ef database update

URLShortener.API is the Web API and exposes methods

  • To create a short url from a provided url
  • Get provided url from a generated short code
  • Increase count of visits to a short url
  • Get the Top 20 most visited short urls

URLShortener.Web is the Angular site that consumes the API

About

URL shortener allows you to create shortened URLs and record how many times the short URL was visited.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published