{"id":9986793,"url":"https://github.com/NikolayIT/ASP.NET-Core-Template","last_synced_at":"2025-08-30T22:31:36.730Z","repository":{"id":42632574,"uuid":"50858772","full_name":"NikolayIT/ASP.NET-Core-Template","owner":"NikolayIT","description":"A ready-to-use template for ASP.NET Core with repositories, services, models mapping, DI and StyleCop warnings fixed.","archived":false,"fork":false,"pushed_at":"2025-04-15T12:23:12.000Z","size":5748,"stargazers_count":1145,"open_issues_count":9,"forks_count":173,"subscribers_count":56,"default_branch":"master","last_synced_at":"2025-08-11T23:28:56.273Z","etag":null,"topics":["asp-net-core","asp-net-core-3-1","aspnet-core","aspnetcore","aspnetcoretemplate","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/NikolayIT.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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,"zenodo":null},"funding":{"github":"NikolayIT","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2016-02-01T17:55:31.000Z","updated_at":"2025-08-08T12:58:19.000Z","dependencies_parsed_at":"2024-01-02T22:43:57.297Z","dependency_job_id":"7aed9126-60ea-4afc-8350-ad8f531f5022","html_url":"https://github.com/NikolayIT/ASP.NET-Core-Template","commit_stats":null,"previous_names":["nikolayit/asp.net-mvc-template"],"tags_count":8,"template":true,"template_full_name":null,"purl":"pkg:github/NikolayIT/ASP.NET-Core-Template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NikolayIT%2FASP.NET-Core-Template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NikolayIT%2FASP.NET-Core-Template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NikolayIT%2FASP.NET-Core-Template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NikolayIT%2FASP.NET-Core-Template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NikolayIT","download_url":"https://codeload.github.com/NikolayIT/ASP.NET-Core-Template/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NikolayIT%2FASP.NET-Core-Template/sbom","scorecard":{"id":101700,"data":{"date":"2025-08-11","repo":{"name":"github.com/NikolayIT/ASP.NET-Core-Template","commit":"6ad6e0d9a8dc7ae6d79367cd1dec8851b66e7378"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.8,"checks":[{"name":"Code-Review","score":1,"reason":"Found 3/22 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact 7.0.3 not signed: https://api.github.com/repos/NikolayIT/ASP.NET-Core-Template/releases/93671253","Warn: release artifact 6.0.5 not signed: https://api.github.com/repos/NikolayIT/ASP.NET-Core-Template/releases/68788748","Warn: release artifact 6.0.3 not signed: https://api.github.com/repos/NikolayIT/ASP.NET-Core-Template/releases/63124444","Warn: release artifact 5.0.6 not signed: https://api.github.com/repos/NikolayIT/ASP.NET-Core-Template/releases/43111624","Warn: release artifact 5.0.1 not signed: https://api.github.com/repos/NikolayIT/ASP.NET-Core-Template/releases/35523884","Warn: release artifact 7.0.3 does not have provenance: https://api.github.com/repos/NikolayIT/ASP.NET-Core-Template/releases/93671253","Warn: release artifact 6.0.5 does not have provenance: https://api.github.com/repos/NikolayIT/ASP.NET-Core-Template/releases/68788748","Warn: release artifact 6.0.3 does not have provenance: https://api.github.com/repos/NikolayIT/ASP.NET-Core-Template/releases/63124444","Warn: release artifact 5.0.6 does not have provenance: https://api.github.com/repos/NikolayIT/ASP.NET-Core-Template/releases/43111624","Warn: release artifact 5.0.1 does not have provenance: https://api.github.com/repos/NikolayIT/ASP.NET-Core-Template/releases/35523884"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 12 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-15T10:16:08.616Z","repository_id":42632574,"created_at":"2025-08-15T10:16:08.617Z","updated_at":"2025-08-15T10:16:08.617Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272917686,"owners_count":25014933,"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":"2025-08-30T02:00:09.474Z","response_time":77,"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":["asp-net-core","asp-net-core-3-1","aspnet-core","aspnetcore","aspnetcoretemplate","template"],"created_at":"2024-05-20T11:01:46.296Z","updated_at":"2025-08-30T22:31:36.444Z","avatar_url":"https://github.com/NikolayIT.png","language":"C#","funding_links":["https://github.com/sponsors/NikolayIT"],"categories":["Frameworks, Libraries and Tools","Application Templates","框架, 库和工具"],"sub_categories":["Application Templates","应用程序模板"],"readme":"# ASP.NET Core Template\n\nA ready-to-use template for ASP.NET Core with repositories, services, models mapping, DI and StyleCop warnings fixed.\n\n## Build status\n\n[![Build Status](https://nikolayit.visualstudio.com/AspNetCoreTemplate/_apis/build/status/NikolayIT.ASP.NET-Core-Template?branchName=master)](https://nikolayit.visualstudio.com/AspNetCoreTemplate/_build/latest?definitionId=15\u0026branchName=master)\n\n## Authors\n\n- [Nikolay Kostov](https://github.com/NikolayIT)\n- [Vladislav Karamfilov](https://github.com/vladislav-karamfilov)\n- [Stoyan Shopov](https://github.com/StoyanShopov)\n\n## Package Installation\n\nYou can install this template using [NuGet](https://www.nuget.org/packages/AspNetCoreTemplate):\n\n```powershell\ndotnet new -i AspNetCoreTemplate\n```\n\n```powershell\ndotnet new aspnet-core -n YourProjectName\n```\n\n## Pack this Template\n\n```powershell\ndotnet pack .\\nuget.csproj\n```\n\n## Project Overview\n\n![Dependencies Graph](https://user-images.githubusercontent.com/25417032/97107966-0e5fc500-16d3-11eb-9b9c-c73012ff97ac.png)\n![image](https://user-images.githubusercontent.com/25417032/97108063-9fcf3700-16d3-11eb-8225-32eac21c4542.png)\n\n### Common\n\n**AspNetCoreTemplate.Common** contains common things for the project solution. For example:\n\n- [GlobalConstants.cs](https://github.com/NikolayIT/ASP.NET-Core-Template/blob/master/src/AspNetCoreTemplate.Common/GlobalConstants.cs).\n\n### Data\n\nThis solution folder contains three subfolders:\n\n- AspNetCoreTemplate.Data.Common\n- AspNetCoreTemplate.Data.Models\n- AspNetCoreTemplate.Data\n\n#### AspNetCoreTemplate.Data.Common\n\n[AspNetCoreTemplate.Data.Common.Models](https://github.com/NikolayIT/ASP.NET-Core-Template/tree/master/src/Data/AspNetCoreTemplate.Data.Common/Models) provides abstract generics classes and interfaces, which holds information about our entities. For example when the object is Created, Modified, Deleted or IsDeleted. It contains a property for the primary key as well.\n\n[AspNetCoreTemplate.Data.Common.Repositories](https://github.com/NikolayIT/ASP.NET-Core-Template/tree/master/src/Data/AspNetCoreTemplate.Data.Common/Repositories) provides two interfaces IDeletableEntityRepository and IRepository, which are part of the **repository pattern**.\n\n#### AspNetCoreTemplate.Data.Models\n\n[AspNetCoreTemplate.Data.Models](https://github.com/NikolayIT/ASP.NET-Core-Template/tree/master/src/Data/AspNetCoreTemplate.Data.Models) contains ApplicationUser and ApplicationRole classes, which inherits IdentityRole and IdentityUsers.\n\n#### AspNetCoreTemplate.Data\n\n[AspNetCoreTemplate.Data](https://github.com/NikolayIT/ASP.NET-Core-Template/tree/master/src/Data/AspNetCoreTemplate.Data) contains DbContext, Migrations and Configuraitons for the EF Core.There is Seeding and Repository functionality as well.\n\n### Services\n\nThis solution folder contains four subfolders:\n\n- AspNetCoreTemplate.Services.Data\n- AspNetCoreTemplate.Services.Mapping\n- AspNetCoreTemplate.Services.Messaging\n- AspNetCoreTemplate.Services\n\n#### AspNetCoreTemplate.Services.Data\n\n[AspNetCoreTemplate.Services.Data](https://github.com/NikolayIT/ASP.NET-Core-Template/tree/master/src/Services/AspNetCoreTemplate.Services.Data) wil contains service layer logic.\n\n#### AspNetCoreTemplate.Services.Mapping\n\n[AspNetCoreTemplate.Services.Mapping](https://github.com/NikolayIT/ASP.NET-Core-Template/tree/master/src/Services/AspNetCoreTemplate.Services.Mapping) provides simplified functionlity for auto mapping. For example:\n\n```csharp\nusing Blog.Data.Models;\nusing Blog.Services.Mapping;\n\npublic class TagViewModel : IMapFrom\u003cTag\u003e\n{\n    public int Id { get; set; }\n\n    public string Name { get; set; }\n}\n```\n\nOr if you have something specific:\n\n```csharp\nusing System;\n\nusing AutoMapper;\nusing Blog.Data.Models;\nusing Blog.Services.Mapping;\n\npublic class IndexPostViewModel : IMapFrom\u003cPost\u003e, IHaveCustomMappings\n{\n    public int Id { get; set; }\n\n    public string Title { get; set; }\n\n    public string Author { get; set; }\n\n    public string ImageUrl { get; set; }\n\n    public DateTime CreatedOn { get; set; }\n\n    public void CreateMappings(IProfileExpression configuration)\n    {\n        configuration.CreateMap\u003cPost, IndexPostViewModel\u003e()\n            .ForMember(\n                source =\u003e source.Author,\n                destination =\u003e destination.MapFrom(member =\u003e member.ApplicationUser.UserName));\n    }\n}\n\n```\n\n#### AspNetCoreTemplate.Services.Messaging\n\n[AspNetCoreTemplate.Services.Messaging](https://github.com/NikolayIT/ASP.NET-Core-Template/tree/master/src/Services/AspNetCoreTemplate.Services.Messaging) a ready to use integration with [SendGrid](https://sendgrid.com/).\n\n#### AspNetCoreTemplate.Services\n\n[AspNetCoreTemplate.Services](https://github.com/NikolayIT/ASP.NET-Core-Template/tree/master/src/Services/AspNetCoreTemplate.Services)\n\n### Tests\n\nThis solution folder contains three subfolders:\n\n- AspNetCoreTemplate.Services.Data.Tests\n- AspNetCoreTemplate.Web.Tests\n- Sandbox\n\n#### AspNetCoreTemplate.Services.Data.Tests\n\n[AspNetCoreTemplate.Services.Data.Tests](https://github.com/NikolayIT/ASP.NET-Core-Template/tree/master/src/Tests/AspNetCoreTemplate.Services.Data.Tests) holds unit tests for our service layer with ready setted up xUnit.\n\n#### AspNetCoreTemplate.Web.Tests\n\n[AspNetCoreTemplate.Web.Tests](https://github.com/NikolayIT/ASP.NET-Core-Template/tree/master/src/Tests/AspNetCoreTemplate.Web.Tests) setted up Selenuim tests.\n\n#### Sandbox\n\n[Sandbox](https://github.com/NikolayIT/ASP.NET-Core-Template/tree/master/src/Tests/Sandbox) can be used to test your logic.\n\n### Web\n\nThis solution folder contains three subfolders:\n\n- AspNetCoreTemplate.Web.Infrastructure\n- AspNetCoreTemplate.Web.ViewModels\n- AspNetCoreTemplate.Web\n\n#### AspNetCoreTemplate.Web.Infrastructure\n\n[AspNetCoreTemplate.Web.Infrastructure](https://github.com/NikolayIT/ASP.NET-Core-Template/tree/master/src/Web/AspNetCoreTemplate.Web.Infrastructure) contains functionality like Middlewares and Filters.\n\n#### AspNetCoreTemplate.Web.ViewModels\n\n[AspNetCoreTemplate.Web.ViewModels](https://github.com/NikolayIT/ASP.NET-Core-Template/tree/master/src/Web/AspNetCoreTemplate.Web.ViewModels) contains objects, which will be mapped from/to our entities and used in the front-end/back-end.\n\n#### AspNetCoreTemplate.Web\n\n[AspNetCoreTemplate.Web](https://github.com/NikolayIT/ASP.NET-Core-Template/tree/master/src/Web/AspNetCoreTemplate.Web) self explanatory.\n\n## Support\n\nIf you are having problems, please let us know by [raising a new issue](https://github.com/NikolayIT/ASP.NET-Core-Template/issues).\n\n## Example Projects\n\n- \u003chttps://github.com/NikolayIT/PressCenters.com\u003e\n- \u003chttps://github.com/NikolayIT/nikolay.it\u003e\n\n## License\n\nThis project is licensed with the [MIT license](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNikolayIT%2FASP.NET-Core-Template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FNikolayIT%2FASP.NET-Core-Template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNikolayIT%2FASP.NET-Core-Template/lists"}