How kayamuhammet/urlshortener works
Project type and purpose
• This is a full-stack, server-rendered ASP.NET Core 7.0 MVC web application with a single SQLite database.
• Purpose: shorten URLs, track clicks, optionally generate custom slugs, and produce downloadable QR codes.
File structure
• Top-level Web App (“UrlShortener” folder) containing:
• Controllers (HomeController.cs)
• Models (UrlModel, ShortenUrlRequest)
• Data (AppDbContext)
• Services (IUrlService/UrlService, IQrCodeService/QrCodeService)
• Views (Razor .cshtml)
• wwwroot (static CSS/JS/lib like Bootstrap, jQuery, SweetAlert2, Clipboard.js)
• Program.cs & appsettings.json (app startup & configuration)
• EF Core migrations and DB context live in Data folder, configured to use SQLite.
README for additional insights
• Confirms tech stack: ASP.NET Core MVC, EF Core, SQLite, Bootstrap 5, QRCoder, Clipboard.js, SweetAlert2.
• Features: URL creation, listing, click count, QR code generation & download, responsive UI.
Essential elements
• Labels: component names and technology (e.g., “UrlService (C# + DI)”)
• Optional: highlight cross-cutting concerns (logging, configuration from appsettings.json)