{"id":35776997,"url":"https://github.com/faiz-mohamed/shoeecommerce-cleanarchitecture-api","last_synced_at":"2026-01-07T05:08:03.547Z","repository":{"id":331300905,"uuid":"1126096086","full_name":"Faiz-mohamed/ShoeEcommerce-CleanArchitecture-API","owner":"Faiz-mohamed","description":"A production-grade Shoe E-Commerce API built with .NET 8, following Clean Architecture principles. Features include CQRS, Domain-Driven Design (DDD), secure Identity (JWT), and Razorpay integration","archived":false,"fork":false,"pushed_at":"2026-01-01T05:14:13.000Z","size":83,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-05T23:27:21.562Z","etag":null,"topics":["clean-architecture","cqrs","csharp","ddd","dotnet-core","ef-core","razorpay","sql-server","web-api"],"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/Faiz-mohamed.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":"2026-01-01T05:03:44.000Z","updated_at":"2026-01-01T05:14:16.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/Faiz-mohamed/ShoeEcommerce-CleanArchitecture-API","commit_stats":null,"previous_names":["faiz-mohamed/shoeecommerce-cleanarchitecture-api"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/Faiz-mohamed/ShoeEcommerce-CleanArchitecture-API","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Faiz-mohamed%2FShoeEcommerce-CleanArchitecture-API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Faiz-mohamed%2FShoeEcommerce-CleanArchitecture-API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Faiz-mohamed%2FShoeEcommerce-CleanArchitecture-API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Faiz-mohamed%2FShoeEcommerce-CleanArchitecture-API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Faiz-mohamed","download_url":"https://codeload.github.com/Faiz-mohamed/ShoeEcommerce-CleanArchitecture-API/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Faiz-mohamed%2FShoeEcommerce-CleanArchitecture-API/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28232768,"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","status":"online","status_checked_at":"2026-01-07T02:00:05.975Z","response_time":58,"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":["clean-architecture","cqrs","csharp","ddd","dotnet-core","ef-core","razorpay","sql-server","web-api"],"created_at":"2026-01-07T05:08:02.055Z","updated_at":"2026-01-07T05:08:03.542Z","avatar_url":"https://github.com/Faiz-mohamed.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 👞 Shoe Ecommerce API (Clean Architecture)\n\nA production-grade RESTful API for a shoe e-commerce platform, built with .NET 8 and following the principles of Clean Architecture. This project demonstrates advanced backend patterns including CQRS, Domain-Driven Design (DDD), and secure payment integration.\n\n## 🚀 Key Features\n\n### 🏗 Architecture \u0026 Design\n* **Clean Architecture:** Strict separation of concerns (Domain, Application, Infrastructure, API).\n* **CQRS Pattern:** Command Query Responsibility Segregation using custom Handlers.\n* **Domain-Driven Design:** Rich domain entities with encapsulated logic.\n* **Repository Pattern:** Abstraction over Entity Framework Core.\n* **Dependency Injection:** Heavy use of .NET Core's DI container.\n\n### 🛒 E-Commerce Modules\n* **Product Catalog:** Supports complex variants (Size, Color, Price), Categories, and Brands.\n* **Smart Cart:** Persistent shopping cart with stock validation.\n* **Wishlist:** \"Toggle\" logic for adding/removing favorites.\n* **Order Management:** Atomic transactions for order creation and inventory deduction.\n* **Payment Gateway:** Full integration with **Razorpay** (Order Creation, Signature Verification, Webhooks).\n\n### 🛡 Security \u0026 Identity\n* **JWT Authentication:** Secure access/refresh token flow.\n* **RBAC:** Role-Based Access Control (Admin vs. Customer).\n* **Admin Panel:** User management, blocking mechanisms, and catalog control.\n* **Validation:** Robust input validation using **FluentValidation**.\n\n## 🛠 Tech Stack\n\n* **Framework:** .NET 8 / ASP.NET Core Web API\n* **Database:** Microsoft SQL Server\n* **ORM:** Entity Framework Core (Code-First)\n* **Documentation:** Swagger / OpenAPI\n* **Validation:** FluentValidation\n* **Payments:** Razorpay SDK\n\n## ⚙️ Setup \u0026 Installation\n\n1.  **Clone the repository**\n    ```bash\n    git clone [https://github.com/Faiz-mohamed/ShoeEcommerce-CleanArchitecture-API.git](https://github.com/Faiz-mohamed/ShoeEcommerce-CleanArchitecture-API.git)\n    ```\n2.  **Configure AppSettings**\n    * Rename `appsettings.json` and update the placeholders with your SQL Server credentials and Razorpay Keys.\n3.  **Database Migration**\n    ```bash\n    Update-Database\n    ```\n    *The app includes a `DbInitializer` that will automatically seed dummy products, brands, and categories on first run.*\n4.  **Run the API**\n    ```bash\n    dotnet run\n    ```\n    Access Swagger documentation at `https://localhost:YOUR_PORT/swagger`.\n\n## 📂 Project Structure\n\n```text\nsrc/\n├── ShoeEcommerce.API             # Entry point, Controllers, Middlewares\n├── ShoeEcommerce.Application     # Business Logic, CQRS Handlers, Validators, DTOs\n├── ShoeEcommerce.Domain          # Entities, Enums, Common Interfaces\n└── ShoeEcommerce.Infrastructure  # EF Core, Migrations, External Services (Razorpay)\n```\n\n🤝 Contributing\nThis is a learning project intended to showcase backend architecture skills. Suggestions are welcome!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffaiz-mohamed%2Fshoeecommerce-cleanarchitecture-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffaiz-mohamed%2Fshoeecommerce-cleanarchitecture-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffaiz-mohamed%2Fshoeecommerce-cleanarchitecture-api/lists"}