{"id":22165528,"url":"https://github.com/Sanskar-Jaiswal/EcommerceApp","last_synced_at":"2025-10-12T18:31:34.849Z","repository":{"id":198857437,"uuid":"701682305","full_name":"Sanskarjaas/EcommerceApp","owner":"Sanskarjaas","description":"This project is an eCommerce Web API developed using ASP.NET Web API, C#, and follows a clean architecture with the API, Core, and Infrastructure layers. It utilizes MSSQL for data storage and implements various features like product management, search functionality, pagination, and error handling.","archived":false,"fork":false,"pushed_at":"2024-11-07T18:00:23.000Z","size":1551,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-02T05:15:06.093Z","etag":null,"topics":["asp-net-core-web-api","entity-framework-core","mssql","pagination","programming-language","swagger-ui"],"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/Sanskarjaas.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}},"created_at":"2023-10-07T08:57:55.000Z","updated_at":"2024-11-07T18:04:34.000Z","dependencies_parsed_at":"2023-11-14T17:42:51.794Z","dependency_job_id":null,"html_url":"https://github.com/Sanskarjaas/EcommerceApp","commit_stats":null,"previous_names":["sanskarjaas/ecommerceapp"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sanskarjaas%2FEcommerceApp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sanskarjaas%2FEcommerceApp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sanskarjaas%2FEcommerceApp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sanskarjaas%2FEcommerceApp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Sanskarjaas","download_url":"https://codeload.github.com/Sanskarjaas/EcommerceApp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":236262675,"owners_count":19120882,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["asp-net-core-web-api","entity-framework-core","mssql","pagination","programming-language","swagger-ui"],"created_at":"2024-12-02T05:15:09.175Z","updated_at":"2025-10-12T18:31:29.537Z","avatar_url":"https://github.com/Sanskarjaas.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eCommerce Web API\n\nThis project is an eCommerce Web API developed using **ASP.NET Web API**, **C#**, and follows a clean architecture with the **API**, **Core**, and **Infrastructure** layers. It utilizes **MSSQL** for data storage and implements various features like product management, search functionality, pagination, and error handling.\n\n## Features\n\n- **CRUD Operations** for managing product data.\n- **Search Functionality** for products by brand, type, and name.\n- **Pagination** support to manage large product lists with configurable page size.\n- **Error Handling** to provide meaningful error messages and status codes.\n- **Swagger** integration for easy API documentation and testing.\n- **Repository Pattern** and **Service Layer** for clean architecture.\n\n## Technologies Used\n\n- **ASP.NET Web API** - For building the API endpoints.\n- **C#** - Programming language for the API logic.\n- **Entity Framework Core** - ORM for data access.\n- **MSSQL** - Database to store product data.\n- **Swagger** - For API documentation and testing.\n- **Repository Pattern** - For data abstraction.\n- **Service Layer** - For business logic handling.\n\n## Architecture\n\nThe project is organized into three main layers:\n\n### 1. **API Layer**  \nContains the API controllers responsible for handling HTTP requests (GET, POST, PUT, DELETE).\n\n### 2. **Core Layer**  \nIncludes business logic, models, and interfaces. This layer defines the application’s core functionality.\n\n### 3. **Infrastructure Layer**  \nHandles data access using **Entity Framework Core** to interact with the **MSSQL** database and implement the **Repository** pattern.\n\n## Setup and Installation\n\n### Prerequisites\n\n- .NET 6 or higher\n- SQL Server (or SQL Express) running locally or on a server\n- Visual Studio or Visual Studio Code\n\n### Steps to Run the Project\n\n1. Clone the repository:\n    ```bash\n    git clone https://github.com/yourusername/ecommerce-web-api.git\n    cd ecommerce-web-api\n    ```\n\n2. **Configure the Database**:  \n   - Create a new SQL Server database or use an existing one.\n   - Update the **connection string** in the `appsettings.json` file in the **Infrastructure** project.\n\n3. **Restore NuGet Packages**:\n   ```bash\n   dotnet restore\n\n4. **Run Migrations **:\n    dotnet ef database update\n    Build and Run the API:\n\n5.**Open Swagger at https://localhost:\u003cport\u003e/swagger to interact with and test the API**.\n\n \n\n# Query Parameters:\n\n    brand: Filter by product brand.\n    type: Filter by product type.\n    name: Filter by product name.\n    page: The page number for pagination.\n    pageSize: Number of products per page (default is 10).\n\n\n\u003ca href=\"https://github.com/Sanskarjaas\"\u003eGitHub --SanskarJaiswal--\u003c/a\u003e\n\n![localhost_7090_swagger_index html (1)](https://github.com/user-attachments/assets/e065996b-ae61-4ca2-9632-fbd6ed3e13bb)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSanskar-Jaiswal%2FEcommerceApp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FSanskar-Jaiswal%2FEcommerceApp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSanskar-Jaiswal%2FEcommerceApp/lists"}