This is a multi-layered blog platform built with ASP.NET Core MVC. It supports writer registration with email confirmation, blog posting, category management, and secure login.
- Writer registration with email confirmation (via Mailtrap)
- FluentValidation for input validation
- Layered architecture (Entity, DataAccess, Business, UI)
- SweetAlert2 for dynamic alerts
- Writer profile editing and password changing
- Entity Framework Core with code-first migrations
EntityLayer/– Entity modelsDataAccessLayer/– EF Core repositoriesBusinessLayer/– Business logic and validatorsStajBlogSitesi/– ASP.NET Core MVC frontend (UI + Controllers)docs/– Project documentation (DOCUMENTATION.pdf)
- .NET 6 SDK
- Visual Studio 2022 (or
dotnet CLI) - SQL Server (or SQLite / LocalDB depending on config)
-
Clone the Repository
git clone https://github.com/your-username/StajBlogSitesi.git cd StajBlogSitesi -
Open in Visual Studio
- Open the solution file:
StajBlogSitesi/StajBlogSitesi.sln
- Open the solution file:
-
Database Configuration
- In
appsettings.json, update theDefaultConnectionstring with your SQL Server credentials.
- In
-
Apply Migrations If migrations already exist:
dotnet ef database update
If no migration exists yet:
dotnet ef migrations add InitialCreate dotnet ef database update
-
Mailtrap Setup
- In
RegisterController.cs, update the SMTP username and password with your Mailtrap credentials.
- In
-
Run the Project
- From Visual Studio: Press
F5orCtrl + F5 - From CLI:
dotnet run --project StajBlogSitesi
- From Visual Studio: Press
Feel free to contribute! Submit a pull request or open an issue to collaborate.
Anil Cem Elemir