
Full-stack
Devritory
A blog platform with comments and an admin panel, written with ASP.NET Core MVC. It has a layered project structure, Entity Framework Core migrations and a session built on a JWT carried in a cookie. I wrote it as a student to learn, and the gaps are listed openly below.
Problem
Writing a blog is easy, but a multi-user one, where people register, write posts and reply to comments while an admin manages everything, forces decisions about layers, authentication and the data model. I wrote Devritory to go through those decisions once, end to end, in ASP.NET Core. What I cared about was structure: entities, data access, business rules and the web layer in separate projects, with the business layer testable.
Highlights
- A five-project solution: Entity, DataAccess (generic and specific repositories), Business, Web (MVC) and Tests. It uses SQL Server through Entity Framework Core code-first, with four migrations (initial schema, comment-user delete behaviour, password reset fields, nested comments).
- On login a JWT is issued and carried in a 2 hour HttpOnly 'blogToken' cookie. A custom middleware validates the token's issuer, audience, lifetime and signature on every request and attaches the user.
- Comments support nested replies through ParentCommentId, and adding, deleting and editing them is done with AJAX without a page reload.
- Password reset works with a token that arrives by e-mail and is valid for 1 hour. On the contact form, Google reCAPTCHA is verified on the server.
- The admin panel manages users, posts, comments and categories and shows view and daily post statistics. Post URLs use slugs, and a post can be downloaded as a PDF in the browser with jsPDF.
Architecture and notes
The web layer contains only MVC controllers, view components (menu, breadcrumb, latest posts) and views; business rules sit in the manager classes of the Business project, and data access in repositories behind interfaces. Dependencies are registered in Program.cs, so the Business tests can swap the repositories for Moq fakes (26 tests in 4 test classes). At startup SeedData adds sample categories, users (an admin among them) and posts. The interface uses Bootstrap 5, jQuery and AJAX.
This is a learning project and its gaps are known. Passwords are stored without hashing and compared as plain text at login; today I would use ASP.NET Identity, or at least BCrypt or PBKDF2. The sample admin account created at startup has a fixed password. The slug generator drops Turkish characters instead of transliterating them, so letters like the Turkish s-cedilla and c-cedilla vanish from the address. The tests cover only the business layer; there are none for controllers or the UI.
Live from GitHub
- Stars
- 0
- Forks
- 0
- Last updated
Languages
- JavaScript43.6%
- C#28.4%
- HTML27.5%
- CSS0.5%
Fetched from the public GitHub API and refreshed hourly.
From the README
Merhaba
Bu proje, Kocaeli Üniversitesi Bilgisayar Mühendisliği öğrencisi olarak geliştirdiğim, modern özelliklere sahip bir blog uygulamasıdır. Hem kişisel öğrenim sürecimi ilerletmek hem de portföyümde güçlü bir yer edinmesi amacıyla geliştirdim.
Amaç
Devritory, kullanıcıların blog yazılarını paylaşabildiği, yorum alabildiği ve içeriklerin yönetilebildiği profesyonel görünümlü bir blog platformudur.
Kullanılan Teknolojiler
- ASP.NET Core 9.0 (MVC)
- Entity Framework Core (Code-first & Migration)
- SQL Server (Veritabanı)
- JWT + Cookie Authentication
- Bootstrap 5 & Animate.css
- jQuery, AJAX
- SweetAlert2 & Toastify.js
- ViewComponent, PartialView
- Role-based Admin Panel
- Unit Test (Moq)
- Google reCAPTCHA
- PDF export, SEO-Friendly URL
- Dark mode, Bildirim sistemi, Şifre güncelleme ekranı, KVKK, Gizlilik, İletişim sayfaları ve daha fazlası...
Güvenlik & Doğrulama
- Kullanıcı kayıt/giriş işlemleri JWT + Cookie ile sağlanıyor.
- Formlar hem sunucu hem istemci tarafında doğrulanıyor.
- reCAPTCHA ile botlara karşı koruma sağlanıyor.
- Şifre güncelleme işlemi için mevcut şifre doğrulama zorunluluğu var.
…
Technologies
Request flow
Hover or focus a component to see what it is.