{"id":24465751,"url":"https://github.com/floyden-monteiro/skinet","last_synced_at":"2026-04-21T20:33:44.358Z","repository":{"id":272911446,"uuid":"917708570","full_name":"Floyden-Monteiro/skinet","owner":"Floyden-Monteiro","description":"Skinet is an e-commerce web application built using ASP.NET Core and Entity Framework Core. The application provides a platform for users to browse and purchase products, while administrators can manage the product catalog. The project follows a clean architecture pattern, leveraging dependency ","archived":false,"fork":false,"pushed_at":"2025-02-28T10:31:22.000Z","size":2091,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-10T18:30:35.305Z","etag":null,"topics":["asp-net-core","automapper","dependency-injection","docker","entity-framework-core","redis","repository-pattern","specification-pattern","sqlite","swagger"],"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/Floyden-Monteiro.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-01-16T13:58:39.000Z","updated_at":"2025-02-28T10:31:25.000Z","dependencies_parsed_at":"2025-02-25T14:29:20.590Z","dependency_job_id":"1d074bfe-3fb3-4a02-993a-65597c3b1e80","html_url":"https://github.com/Floyden-Monteiro/skinet","commit_stats":null,"previous_names":["floyden-monteiro/skinet"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Floyden-Monteiro/skinet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Floyden-Monteiro%2Fskinet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Floyden-Monteiro%2Fskinet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Floyden-Monteiro%2Fskinet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Floyden-Monteiro%2Fskinet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Floyden-Monteiro","download_url":"https://codeload.github.com/Floyden-Monteiro/skinet/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Floyden-Monteiro%2Fskinet/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32108747,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-21T11:25:29.218Z","status":"ssl_error","status_checked_at":"2026-04-21T11:25:28.499Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["asp-net-core","automapper","dependency-injection","docker","entity-framework-core","redis","repository-pattern","specification-pattern","sqlite","swagger"],"created_at":"2025-01-21T06:12:43.926Z","updated_at":"2026-04-21T20:33:44.335Z","avatar_url":"https://github.com/Floyden-Monteiro.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Skinet\n\nSkinet is an e-commerce web application built using ASP.NET Core and Entity Framework Core. The application provides a platform for users to browse and purchase products, while administrators can manage the product catalog. The project follows a clean architecture pattern, leveraging dependency injection, repository pattern, and specification pattern to ensure a maintainable and scalable codebase.\n\n## Key Features\n\n- **Product Catalog:** Users can browse a catalog of products, view product details, and filter products by brand and type.\n- **Product Management:** Administrators can add, update, and delete products, brands, and types.\n- **Error Handling:** Custom middleware for handling exceptions and returning appropriate error responses.\n- **Swagger Integration:** API documentation and testing using Swagger UI.\n- **CORS Support:** Configured CORS policy to allow cross-origin requests.\n- **Static Files:** Serving static files such as images, CSS, and JavaScript.\n- **Database Seeding:** Initial seeding of the database with sample data for products, brands, and types.\n\n## Technologies Used\n\n- **ASP.NET Core:** For building the web API.\n- **Entity Framework Core:** For data access and database management.\n- **AutoMapper:** For object-object mapping.\n- **Swagger:** For API documentation and testing.\n- **SQLite:** As the database provider.\n- **Dependency Injection:** For managing dependencies and promoting loose coupling.\n- **Repository Pattern:** For abstracting data access logic.\n- **Specification Pattern:** For encapsulating query logic.\n\n## Project Structure\n\n- **API:** Contains the controllers, DTOs, and middleware.\n- **Core:** Contains the domain entities, interfaces, and specifications.\n- **Infrastructure:** Contains the data access logic, including the DbContext and repository implementations.\n\n## Getting Started\n\n### Prerequisites\n\n- [.NET 6 SDK](https://dotnet.microsoft.com/download/dotnet/6.0)\n- [SQLite](https://www.sqlite.org/download.html)\n\n### Installation\n\n1. **Clone the repository:**\n   ```sh\n   git clone https://github.com/your-repo/skinet.git\n   ```\n2. **Navigate to the project directory:**\n   ```sh\n   cd skinet\n   ```\n3. **Install dependencies:**\n   ```sh\n   dotnet restore\n   ```\n4. **Apply database migrations:**\n   ```sh\n   dotnet ef database update\n   ```\n5. **Run the application:**\n   ```sh\n   dotnet run\n   ```\n\n### Usage\n\n- Access the Swagger UI at `http://localhost:5000/swagger` to explore and test the API endpoints.\n- Use the provided endpoints to manage products, brands, and types.\n\n## Key Files\n\n- **Program.cs:** Configures the application, services, and middleware.\n- **StoreContext.cs:** The Entity Framework Core DbContext for the application.\n- **ProductsController.cs:** The controller for managing products.\n- **StoreContextSeed.cs:** Seeds the database with initial data.\n- **SpecificationEvaluator.cs:** Applies specifications to queries.\n\n## Commands\n\n### Project Creation and Setup\n\n- **Create a new Web API project:**\n  ```sh\n  dotnet new webapi -n MyProject --use-controllers\n  ```\n\n- **Add project to solution:**\n  ```sh\n  dotnet sln add MyProject\n  ```\n\n- **Check if project is added to solution:**\n  ```sh\n  dotnet sln list\n  ```\n\n- **Create class library projects:**\n  ```sh\n  dotnet new classlib -n MyProject.Core\n  dotnet new classlib -n MyProject.Infrastructure\n  ```\n\n- **Add project references:**\n  ```sh\n  dotnet add reference ../MyProject\n  ```\n\n- **Restore project dependencies:**\n  ```sh\n  dotnet restore\n  ```\n\n### Entity Framework Commands\n\n- **Add a migration:**\n  ```sh\n  dotnet ef migrations add InitialCreate -o Data/Migrations\n  ```\n\n- **Update the database:**\n  ```sh\n  dotnet ef database update\n  ```\n\n- **Drop the database:**\n  ```sh\n  dotnet ef database drop -p Infrastructure -s MyProject\n  ```\n\n- **Remove the last migration:**\n  ```sh\n  dotnet ef migrations remove -p Infrastructure -s MyProject\n  ```\n\n- **Add a new migration:**\n  ```sh\n  dotnet ef migrations add InitialCreate -p Infrastructure -s API -o Data/Migrations\n  ```\n\n### Development and Testing\n\n- **Run the application with hot reload:**\n  ```sh\n  dotnet watch run\n  ```\n\n- **Create a .gitignore file:**\n  ```sh\n  dotnet new gitignore\n  ```\n\n## Contributing\n\nContributions are welcome! Please fork the repository and submit a pull request with your changes.\n\n## License\n\nThis project is licensed under the MIT License.\n\n\ncreate agurlar project\nng new client \n\ncreat a new component\nng g c shop\n\ncreate a new module\nng g m shop\n ng g c --flat --skip-tests shop/shop  // --flat to not create a folder for the component\n\n you can use --dry-run to see what will be created without actually creating it.\n\n \ncreate service\nng g s shop/shop\n\n\n ng g m core --dry-run\n\n\n  dotnet ef migrations add IdentityIntial -p Infrastructure -s API -c AppIdentityDbContext -o Identity/Migrations","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffloyden-monteiro%2Fskinet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffloyden-monteiro%2Fskinet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffloyden-monteiro%2Fskinet/lists"}