{"id":29117743,"url":"https://github.com/kareemwaleed266/library-management-system-api","last_synced_at":"2026-04-28T09:36:24.048Z","repository":{"id":301705350,"uuid":"1010069761","full_name":"kareemwaleed266/library-management-system-api","owner":"kareemwaleed266","description":"A secure ASP.NET Core Web API for managing library books, users, and roles with JWT authentication and EF Core.","archived":false,"fork":false,"pushed_at":"2025-06-28T10:22:39.000Z","size":7959,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-28T10:31:33.974Z","etag":null,"topics":["aspnetcore","backend-api","entityframework","jwt-authentication","library-management-system-api","sqlserver"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kareemwaleed266.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-28T09:23:46.000Z","updated_at":"2025-06-28T10:22:42.000Z","dependencies_parsed_at":"2025-06-28T10:41:38.256Z","dependency_job_id":null,"html_url":"https://github.com/kareemwaleed266/library-management-system-api","commit_stats":null,"previous_names":["kareemwaleed266/library-management-system-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kareemwaleed266/library-management-system-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kareemwaleed266%2Flibrary-management-system-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kareemwaleed266%2Flibrary-management-system-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kareemwaleed266%2Flibrary-management-system-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kareemwaleed266%2Flibrary-management-system-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kareemwaleed266","download_url":"https://codeload.github.com/kareemwaleed266/library-management-system-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kareemwaleed266%2Flibrary-management-system-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32375618,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T09:24:15.638Z","status":"ssl_error","status_checked_at":"2026-04-28T09:24:15.071Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aspnetcore","backend-api","entityframework","jwt-authentication","library-management-system-api","sqlserver"],"created_at":"2025-06-29T12:05:09.951Z","updated_at":"2026-04-28T09:36:24.043Z","avatar_url":"https://github.com/kareemwaleed266.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 📚 Library Management System API\n\nA secure and scalable **ASP.NET Core Web API** for managing library data including books, users, roles, and transactions.  \nBuilt using **Entity Framework Core**, **ASP.NET Identity**, **JWT Authentication**, and follows **Clean Architecture** principles.\n\n---\n\n## 🚀 Features\n\n- ✅ **User Authentication \u0026 Authorization** with JWT and ASP.NET Identity\n- 📘 **Book \u0026 Library Management** (CRUD operations)\n- 🧩 **Role-based Access Control**\n- 🔐 **Token security** with encryption and claims\n- 🔍 **Filtering, Searching, Sorting, Pagination**\n- 🧾 **Swagger UI** for testing endpoints\n- 📊 **Centralized Logging** via NLog\n- 🔁 **Layered Clean Architecture** (Service/Repo/API Separation)\n- 📦 **DTO Mapping** using AutoMapper\n\n---\n\n## 🛠️ Tech Stack\n\n| Layer        | Technology                      |\n|--------------|---------------------------------|\n| Framework    | ASP.NET Core 6.0                |\n| ORM          | Entity Framework Core           |\n| Database     | SQL Server                      |\n| Auth         | ASP.NET Identity + JWT          |\n| Docs         | Swagger (Swashbuckle)           |\n| Logging      | NLog                            |\n| Mapping      | AutoMapper                      |\n\n---\n## 🧱 Project Structure Overview\n\n### **Presentation Layer** – (API)\n- `Controllers/`: RESTful endpoints for HTTP communication  \n- `Middlewares/`: Global error handling, JWT validation  \n- `Extensions/`: Service and middleware setup helpers  \n- `Helper/`: Token creation and encryption utilities\n\n---\n\n### **Business Layer** – (Services)\nLocated in `Library.Service/`:\n- `BookService/`: Business logic for books  \n- `UserService/`: Manages users and roles  \n- `TransactionService/`: Borrow and return operations  \n- `TokenService/`: Handles JWT token creation and refreshing  \n- `Dtos/`: Each service has its own DTOs to decouple data models\n\n---\n\n### **Data Access Layer** – (Repositories)\n- `Library.Repository/`: Contains repositories that interact with the database using EF Core\n\n---\n\n### **Infrastructure Layer** – (Database \u0026 Identity)\n- `Library.Data/`:  \n  - `Entities/IdentityEntities/`: Identity user/role entities  \n  - `Migrations/`: EF Core migration files\n\n---\n\n### ⚙️ App Entry \u0026 Config\n- `Program.cs`: Main app entry point (DI setup, Middleware, App config)  \n- `appsettings.json`: DB connection strings, JWT keys, and app secrets\n\n---\n\n## 📦 Getting Started\n\n### 1. Clone the repository\n\n```bash\ngit clone https://github.com/kareemwaleed266/library-management-api.git\ncd library-management-api/Library\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkareemwaleed266%2Flibrary-management-system-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkareemwaleed266%2Flibrary-management-system-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkareemwaleed266%2Flibrary-management-system-api/lists"}