{"id":51009868,"url":"https://github.com/rashedul-alam46/library-api-sqlserver","last_synced_at":"2026-06-21T01:06:40.364Z","repository":{"id":316697944,"uuid":"1063997098","full_name":"rashedul-alam46/library-api-sqlserver","owner":"rashedul-alam46","description":"REST API built with .NET, C#, and MS SQL Server","archived":false,"fork":false,"pushed_at":"2025-11-04T15:56:58.000Z","size":7432,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-04-01T09:31:57.179Z","etag":null,"topics":["csharp","dotnet-core","restful-api","sql-server"],"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/rashedul-alam46.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-25T11:57:22.000Z","updated_at":"2025-11-12T11:06:24.000Z","dependencies_parsed_at":"2025-10-22T05:27:13.258Z","dependency_job_id":"c4df4274-14ec-4282-8e67-1279e7f1db4b","html_url":"https://github.com/rashedul-alam46/library-api-sqlserver","commit_stats":null,"previous_names":["rashedulalam46/library-api-sqlserver","rashedul-alam46/library-api-sqlserver"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rashedul-alam46/library-api-sqlserver","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rashedul-alam46%2Flibrary-api-sqlserver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rashedul-alam46%2Flibrary-api-sqlserver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rashedul-alam46%2Flibrary-api-sqlserver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rashedul-alam46%2Flibrary-api-sqlserver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rashedul-alam46","download_url":"https://codeload.github.com/rashedul-alam46/library-api-sqlserver/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rashedul-alam46%2Flibrary-api-sqlserver/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34590327,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-20T02:00:06.407Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["csharp","dotnet-core","restful-api","sql-server"],"created_at":"2026-06-21T01:06:39.666Z","updated_at":"2026-06-21T01:06:40.343Z","avatar_url":"https://github.com/rashedul-alam46.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Library API (SQL Server + Docker)\n\nA .NET Core / .NET 9 Web API for managing a library system, backed by MS SQL Server.  \nThis project is structured with clean architecture (Domain, Application, Infrastructure, API) and supports basic CRUD operations on books, authors, categories, publishers, etc.\n\n---\n\n## 📁 Repository Structure\n```\nLibraryApiSqlServer/\n├── Library.Api/                   # API / presentation layer (controllers, endpoints)\n├── Library.Application/           # Application logic\n│   ├── Services/                  # Business services / use cases\n│   └── DTOs/                      # Data Transfer Objects, ViewModels\n├── Library.Domain/                # Domain / core (entities, interfaces)\n├── Library.Infrastructure/        # Data access, repository implementations, EF Core, DB context\n├── LibraryApiSqlServer.sln\n├── Program.cs\n├── appsettings.json\n├── appsettings.Development.json\n└── README.md\n```\n\n---\n\n## ⚙️ Prerequisites\n\n- [.NET 9 SDK](https://dotnet.microsoft.com/download) or compatible .NET version  \n- SQL Server instance (local or remote)\n- [Docker Desktop](https://www.docker.com/products/docker-desktop/) for containerized setup (Optional)\n- A tool like **SQL Server Management Studio (SSMS)** for DB inspection (Optional)\n\n---\n\n## 🔧 Setup / Getting Started\n\n**1. Clone the repository**\n\n```bash\n   git clone https://github.com/rashedulalam46/library-api-sqlserver.git\n   cd library-api-sqlserver\n```\n\n**2. Configure connection string**\n   \nOpen appsettings.json or appsettings.Development.json, and set up your ConnectionStrings:DefaultConnection to point to your SQL Server.\n\n```\n{\n  \"ConnectionStrings\": {\n    \"ConString\": \"Server=YOUR_SERVER;Database=LibraryDb;User Id=…;Password=…;\"\n  }\n}\n```\n\nIf you are using Docker, then use\n\n```\n{\n  \"ConnectionStrings\": {\n    \"ConString\": \"Server=host.docker.internal;Database=LibraryDb;User Id=…;Password=…;\"\n  }\n}\n```\n\n**3. Apply migrations / create database**\n\nRun the SQL script located in **Library.Infrastructure/Data/DatabaseScript.sql** to create the database and tables.   \nAlternatively, to create the database and tables using Entity Framework, run the following command in the Infrastructure project (or from the solution root):\n\n```\ndotnet ef database update\n```\n\nThis will create the database and necessary tables.\n\n**4. Build \u0026 run the API**\n\n```\ndotnet build\ndotnet run\n```\n\nThe default launch URL might be https://localhost:5001 (or as configured). Use a tool like Postman, curl, or HTTPie to test the endpoints.\n\n## 🛣️ API Endpoints (Examples)\n\nThese are sample endpoints — adjust according to actual implementation.\n| Method | URL             | Description             |\n| ------ | --------------- | ----------------------- |\n| GET    | /api/books      | Get all books           |\n| GET    | /api/books/{id} | Get book by ID          |\n| POST   | /api/books      | Create a new book       |\n| PUT    | /api/books/{id} | Update an existing book |\n| DELETE | /api/books/{id} | Delete a book by ID     |\n\n## ✅ Features \u0026 Highlights\n\n- Clean / layered architecture (Domain, Application, Infrastructure)\n- Dependency Injection\n- EF Core as data access layer\n- DTOs / ViewModels for input/output\n- Configuration-based connection strings\n- Exception handling, validation, etc. (if implemented)\n\n ## 📦 Deployment\n\nWhen you’re ready to deploy:\n\n- Configure the production connection string in environment variables.\n- Publish the project:\n\n```\ndotnet publish --configuration Release\n```\n\n- Deploy the resulting output to your server / host / container.\n- Ensure the database is accessible and migrations are applied.\n\n##  📄 License \u0026 Contribution\n\n- Feel free to fork or suggest changes via pull requests.\n- Add a LICENSE file if you have specific usage terms.\n- Please document style, code conventions, etc., in a CONTRIBUTING.md.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frashedul-alam46%2Flibrary-api-sqlserver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frashedul-alam46%2Flibrary-api-sqlserver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frashedul-alam46%2Flibrary-api-sqlserver/lists"}