How x0rld/lebonanimal works
Project type and purpose
• This is a C# ASP.NET Core MVC web application (“lebonanimal”) for managing animal classifieds (users can register, post products/annonces, browse, buy; admins can approve or ban).
• It uses Entity Framework Core for persistence and Razor Views/Bootstrap/jQuery for the UI.
File structure
• Top-level folders:
• Controllers/ ← MVC controllers handling HTTP requests
• Models/ ← domain entities (User, Product, Category, Order…)
• Views/ ← Razor (.cshtml) templates under Home, Product, User, Admin, Shared
• Datas/ ← DbConnect.cs (EntityFramework DbContext configuration)
• Migrations/ ← EF Core migrations for database schema
• wwwroot/ ← static assets (css, js, images, Bootstrap, jQuery libs)
• Program.cs + appsettings*.json ← application entry point and configuration (including user-secrets for DB connection)
• There’s no separate “service” folder, so business logic likely lives in controllers or model classes.
README for additional insights
• Focuses on setting the SQL Server connection string via dotnet-user-secrets.
• Confirms use of SQL Server for the relational database.