{"id":18296503,"url":"https://github.com/shadynagy/shadynagy.apitemplate","last_synced_at":"2025-04-05T12:31:58.822Z","repository":{"id":40490089,"uuid":"453398308","full_name":"ShadyNagy/ShadyNagy.ApiTemplate","owner":"ShadyNagy","description":"Clean Architecture Endpoints Solution Template: A starting point for Clean Architecture Endpoints with ASP.NET Core.","archived":false,"fork":false,"pushed_at":"2025-03-03T08:53:55.000Z","size":189,"stargazers_count":13,"open_issues_count":24,"forks_count":2,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-03T11:45:58.493Z","etag":null,"topics":["api","api-rest","architecture","clean-architecture","csharp","ddd","dotnet-core","dotnetcore","ef","efcore","endpoints","template"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ShadyNagy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","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},"funding":{"github":["ShadyNagy"]}},"created_at":"2022-01-29T13:00:06.000Z","updated_at":"2025-03-02T14:07:10.000Z","dependencies_parsed_at":"2024-11-05T14:46:48.580Z","dependency_job_id":"bcf7c70a-1f5a-4ada-9904-f0dd318099ca","html_url":"https://github.com/ShadyNagy/ShadyNagy.ApiTemplate","commit_stats":{"total_commits":67,"total_committers":3,"mean_commits":"22.333333333333332","dds":0.5223880597014925,"last_synced_commit":"3a394070a675b38b89f4eb7e63ad00f2bb5cf0c4"},"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShadyNagy%2FShadyNagy.ApiTemplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShadyNagy%2FShadyNagy.ApiTemplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShadyNagy%2FShadyNagy.ApiTemplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShadyNagy%2FShadyNagy.ApiTemplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ShadyNagy","download_url":"https://codeload.github.com/ShadyNagy/ShadyNagy.ApiTemplate/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247339022,"owners_count":20923004,"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":["api","api-rest","architecture","clean-architecture","csharp","ddd","dotnet-core","dotnetcore","ef","efcore","endpoints","template"],"created_at":"2024-11-05T14:41:19.004Z","updated_at":"2025-04-05T12:31:56.847Z","avatar_url":"https://github.com/ShadyNagy.png","language":"C#","funding_links":["https://github.com/sponsors/ShadyNagy","https://www.paypal.me/shadynagy"],"categories":[],"sub_categories":[],"readme":"[![.NET Core](https://github.com/ShadyNagy/ShadyNagy.ApiTemplate/workflows/.NET%20Core/badge.svg)](https://github.com/ShadyNagy/ShadyNagy.ApiTemplate/actions)\n[![publish to nuget](https://github.com/ShadyNagy/ShadyNagy.ApiTemplate/actions/workflows/publish.yml/badge.svg)](https://github.com/ShadyNagy/ShadyNagy.ApiTemplate/actions/workflows/publish.yml)\n[![ShadyNagy.ApiTemplate on NuGet](https://img.shields.io/nuget/v/ShadyNagy.ApiTemplate?label=ShadyNagy.ApiTemplate)](https://www.nuget.org/packages/ShadyNagy.ApiTemplate/)\n[![NuGet](https://img.shields.io/nuget/dt/ShadyNagy.ApiTemplate)](https://www.nuget.org/packages/ShadyNagy.ApiTemplate)\n[![License](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/ShadyNagy/Utilities/blob/master/LICENSE)\n    \u003ca href=\"https://www.paypal.me/shadynagy\" alt=\"paypal\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/PayPal-tip%20me-green.svg?logo=paypal\" /\u003e\n    \u003c/a\u003e\n\n# ShadyNagy.ApiTemplate\n\nA starting point for Clean Architecture Endpoints with ASP.NET Core. [Clean Architecture](https://8thlight.com/blog/uncle-bob/2012/08/13/the-clean-architecture.html) is just the latest in a series of names for the same loosely-coupled, dependency-inverted architecture. You will also find it named [hexagonal](http://alistair.cockburn.us/Hexagonal+architecture), [ports-and-adapters](http://www.dossier-andreas.net/software_architecture/ports_and_adapters.html), or [onion architecture](http://jeffreypalermo.com/blog/the-onion-architecture-part-1/).\n\n## Give a Star! :star:\nIf you like or are using this project to learn or start your solution, please give it a star. Thanks!\n\nOr if you're feeling really generous, we now support GitHub sponsorships - see the button above.\n\n## EF Migrations Commands\n\nEnsure the tool EF was already installed. You can find some help here\n```powershell\nsetx PATH \"%PATH%;C:\\Users\\USER_NAME\\.dotnet\\tools\" \ndotnet tool install --global dotnet-ef\n```\n\nAdd a new migration (from the ShadyNagy.ApiTemplate.Api folder):\n\n```powershell\ndotnet ef migrations add MIGRATIONNAME -c appdbcontext -p ../ShadyNagy.ApiTemplate.Infrastructure/ShadyNagy.ApiTemplate.Infrastructure.csproj -s ShadyNagy.ApiTemplate.Api.csproj -o Data/Migrations\n```\n\nUpdate AppDbContext model (from the ShadyNagy.ApiTemplate.Api folder):\n\n```powershell\ndotnet ef database update -c appdbcontext -p ../ShadyNagy.ApiTemplate.Infrastructure/ShadyNagy.ApiTemplate.Infrastructure.csproj -s ShadyNagy.ApiTemplate.Api.csproj\n```\n\nGenerate Idempotent Update Script (for production)(from the ShadyNagy.ApiTemplate.Api folder):\n\n```powershell\ndotnet ef migrations script -c AppDbContext -i -o migrate.sql -p ../ShadyNagy.ApiTemplate.Infrastructure/ShadyNagy.ApiTemplate.Infrastructure.csproj -s ShadyNagy.ApiTemplate.Api.csproj\n```\n\n### Some CLI\n```powershell\ndotnet format whitespace\ndotnet format style\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshadynagy%2Fshadynagy.apitemplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshadynagy%2Fshadynagy.apitemplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshadynagy%2Fshadynagy.apitemplate/lists"}