https://github.com/erossini/shorturl
Creating a URL shortener using ASP.NET WepAPI and MVC
https://github.com/erossini/shorturl
Last synced: about 19 hours ago
JSON representation
Creating a URL shortener using ASP.NET WepAPI and MVC
- Host: GitHub
- URL: https://github.com/erossini/shorturl
- Owner: erossini
- License: gpl-3.0
- Created: 2020-03-05T10:45:52.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-06-22T22:49:13.000Z (over 3 years ago)
- Last Synced: 2025-01-12T10:07:12.978Z (9 months ago)
- Language: C#
- Homepage: http://psc.fyi
- Size: 1.18 MB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# ShortUrl
Creating a URL shortener using ASP.NET WepAPI and MVCIn this solution, I use several techniques and tools. I use Microsoft Visual Studio 2015 and the latest version of all components.
- **ASP.NET MVC**: Microsoft’s modern web application framework. As the name says, it pushes you to use the MVC (model view controller) software design principle.
- **ASP.NET Web API**: Web API and MVC are used together in many applications. With MVC, the HTML of the web pages are rendered on the server, and with Web API you can, like the name says, create an API. Web API also uses the MVC principle, but returns XML (or JSON, or YAML, or … whatever you want) instead of HTML.
- **Microsoft SQL Server**: this is my primary database choice.
- **Entity Framework**: this is my favourite ORM (object relational mapping) framework. With Entity Framework, you can create a database “code-first”, meaning that you can create classes (called entities) that represent the database and create the database based on those entities and its relations. When you’ve updated one of these entities, you can add a new migration, which means that the changes to your entities will be written to the database.
- **Unity**: Unity is a dependency injection framework. You can read more on dependency injection and inversion of control later in this tutorial.
- **Microsoft Report**: creates reports of our statsIf you visit [PureSourceCode.com](https://puresourcecode.com/dotnet/post/2016/01/28/Creating-a-URL-shortener-using-ASPNET-WepAPI-and-MVC), you have the full description of the code step by step.
## Home page
This is what the public home page looks like. From here, you can create a new short url to share. What this solution is offering is:- the format of a short link is http://psc.fyi/
- for each short url you have:
- statistics http://psc.fyi//stats
- graphs
- visitor world map
- PDF export
- QRCodeIf you register on it:
- nobody can view your statistics
- view and edit your short url list
## Statistic page
