Bu proje, bir kütüphanedeki kitap ve yazar işlemlerini yönetmek için ASP.NET Core MVC teknolojisiyle geliştirilmiştir. Kullanıcılar kitap ve yazar ekleyebilir, düzenleyebilir, silebilir (soft delete), detay görüntüleyebilir ve silinen kayıtları geri alabilirler.
-
Projeyi İndir/Yükle:
- Proje dosyalarını bilgisayarınıza indirin veya kopyalayın.
- Görselleri (ör:
library.png)wwwroot/imagesklasörüne ekleyin.
-
Açmak için:
- Visual Studio ile
.slndosyasını açın. - Gerekirse bağımlılıkları yüklemek için Restore (sağ tık > Restore NuGet Packages) yapın.
- Visual Studio ile
-
Çalıştırmak için:
- F5 tuşuna basın veya üstteki “Başlat” butonuna tıklayın.
- Proje açıldığında varsayılan olarak ana sayfa açılır.
-
Controllers/
BookController.cs– Kitap işlemleri (listele, detay, ekle, düzenle, sil, silinenler)AuthorController.cs– Yazar işlemleri (listele, detay, ekle, düzenle, sil, silinenler)
-
Models/
Book.cs– Kitap modeliAuthor.cs– Yazar modeli
-
Models/ViewModels/
BookDetailViewModel.cs– Kitap ve yazar bilgilerini view’a taşımak için kullanılırAuthorDetailViewModel.cs– Yazar ve kitap bilgilerini view’a taşımak için kullanılır
-
Views/
Book/– Kitaplara ait tüm view’lar (List, Details, Create, Edit, Delete, DeletedList)Author/– Yazarlara ait tüm view’lar (List, Details, Create, Edit, Delete, DeletedList)Shared/_Layout.cshtml– Tüm sayfalarda ortak kullanılan şablon ve navbarShared/_FooterPartial.cshtml– Footer alanı
-
wwwroot/
- Statik dosyalar: görseller, css, js dosyaları
- Kitap ve Yazar İşlemleri:
- Ekleme, listeleme, detay, düzenleme, silme (soft delete)
- Silinenler Listesi:
- Silinen kitap ve yazarlar ayrı bir sayfada listelenir, istenirse geri alınabilir (Restore)
- Ana Sayfa ve Hakkında:
- Projenin amacı ve tanıtımı
- Duyarlı (Responsive) Tasarım:
- Bootstrap ile masaüstü ve mobil uyumlu arayüz
- Partial View ve Layout Kullanımı:
- Footer ve navbar ortak şablon olarak kullanılmıştır
- Kitaplar/Yazarlar menüsünden kitap ve yazar listesine erişilir.
- “Yeni Ekle” butonu ile yeni kayıt eklenir.
- Liste üzerinden “Detay”, “Düzenle”, “Sil” işlemleri yapılabilir.
- “Silinenler” menüsünden, silinen kitap veya yazarlar listelenir ve gerekirse “Geri Al” ile aktif hale getirilir.
- Statik veri kullanımı:
- Bu proje eğitim amaçlı olduğundan, kitaplar ve yazarlar bellekte (List ile) tutulmaktadır. Gerçek ortamda veritabanı kullanılması önerilir.
- Soft Delete:
- Silinen kitap veya yazarlar aslında veri kaybı olmadan
IsDeletedözelliği ile işaretlenir.
- Silinen kitap veya yazarlar aslında veri kaybı olmadan
- Bootstrap:
- Modern ve responsive tasarım için kullanılır.
- Uygulama açıldıktan sonra:
- Tüm ekle/düzenle/sil işlemlerini deneyin.
- Silinen bir kaydı “Silinenler” menüsünde görün ve “Geri Al” ile geri getirin.
- Kitap ve yazar ekleyip, ilişkili şekilde birbirlerini görebildiklerini kontrol edin.
- Responsive tasarımın mobilde düzgün çalıştığından emin olun.
- Veriler geçici olarak RAM’de tutulduğu için, proje kapanınca eklenen kayıtlar silinir.
- Gerçek veri kalıcılığı için Entity Framework ve bir veritabanı kullanılması gerekir.
- Veritabanı entegrasyonu (Entity Framework)
- Kullanıcı giriş/çıkış (authentication)
- Kütüphane yönetiminde ödünç alma/teslim gibi ek modüller
- Kayıt arama ve filtreleme
- PDF/Excel rapor alma
- Ad Soyad: Halenur Gurel
- Tarih: 13.07.2025
Herhangi bir sorunda bana ulaşabilirsin!
This project is a web application built with ASP.NET Core MVC for managing book and author operations in a library. Users can add, edit, delete (soft delete), view details of books and authors, and restore deleted records.
-
Download or Clone the Project:
- Download or clone all project files to your computer.
- Add images (e.g.,
library.png) to thewwwroot/imagesfolder.
-
Open the Project:
- Open the
.slnfile in Visual Studio. - If necessary, right-click on the solution and select Restore NuGet Packages.
- Open the
-
Run the Project:
- Press the F5 key or click the "Start" button at the top.
- The project will launch and the home page will open by default.
-
Controllers/
BookController.cs– Book operations (list, details, add, edit, delete, deleted items)AuthorController.cs– Author operations (list, details, add, edit, delete, deleted items)
-
Models/
Book.cs– Book modelAuthor.cs– Author model
-
Models/ViewModels/
BookDetailViewModel.cs– Transfers book and author info to the viewAuthorDetailViewModel.cs– Transfers author and book info to the view
-
Views/
Book/– Views for books (List, Details, Create, Edit, Delete, DeletedList)Author/– Views for authors (List, Details, Create, Edit, Delete, DeletedList)Shared/_Layout.cshtml– Common layout and navbar for all pagesShared/_FooterPartial.cshtml– Footer partial
-
wwwroot/
- Static files: images, css, js files
- Book and Author Operations:
- Add, list, view details, edit, delete (soft delete)
- Deleted Items List:
- Deleted books and authors are listed on a separate page and can be restored if desired
- Home and About Pages:
- Introduction and description of the project
- Responsive Design:
- Modern and mobile-friendly UI using Bootstrap
- Partial View and Layout Usage:
- Common footer and navbar with partial views
- Access the Books/Authors menu to see the lists.
- Use the "Add New" button to add new records.
- You can view details, edit, or delete any item from the list.
- View the "Deleted Items" menu to see deleted books or authors, and restore them if necessary.
- Static Data Usage:
- For educational purposes, data is kept in memory using lists. For real-life usage, a database should be used.
- Soft Delete:
- Deleted books or authors are not lost; they are flagged with the
IsDeletedproperty.
- Deleted books or authors are not lost; they are flagged with the
- Bootstrap:
- For modern, responsive design.
- After launching the application:
- Try all add/edit/delete operations.
- After deleting a record, check if it appears in the "Deleted Items" list and can be restored.
- Add books and authors and verify their relationship is correctly shown.
- Check the responsive design on mobile devices.
- Since data is stored temporarily in memory (RAM), all records will be lost when the project is closed.
- For persistent data storage, integration with Entity Framework and a real database is recommended.
- Database integration (Entity Framework)
- User authentication (login/logout)
- Additional modules for library management (borrowing/returning books)
- Search and filtering features
- Exporting reports (PDF/Excel)
- Name: Halenur Gurel
- Date: 13.07.2025
Feel free to contact me if you have any questions!