Skip to content

Commit

Permalink
Add project files.
Browse files Browse the repository at this point in the history
  • Loading branch information
bugrakosen committed Sep 14, 2024
1 parent ea455f2 commit 595c399
Show file tree
Hide file tree
Showing 196 changed files with 14,931 additions and 0 deletions.
50 changes: 50 additions & 0 deletions Milvasoft.Templates.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<!-- The package metadata. Fill in the properties marked as TODO below -->
<!-- Follow the instructions on https://learn.microsoft.com/en-us/nuget/create-packages/package-authoring-best-practices -->
<PackageId>Milvasoft.Templates</PackageId>
<PackageVersion>1.0.0</PackageVersion>
<Copyright>Milvasoft</Copyright>
<Company>Milvasoft</Company>
<Title>Milvasoft Templates</Title>
<Authors>Milvasoft</Authors>
<Description>Templates to use when creating an api.</Description>
<PackageTags>dotnet-new;templates;contoso</PackageTags>
<PackageCopyright>Milvasoft</PackageCopyright>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/Milvasoft/Milvasoft.Templates</PackageProjectUrl>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/Milvasoft/Milvasoft.Templates</RepositoryUrl>

<!-- Keep package type as 'Template' to show the package as a template package on nuget.org and make your template available in dotnet new search.-->
<PackageType>Template</PackageType>
<TargetFramework>net8.0</TargetFramework>
<IncludeContentInPack>true</IncludeContentInPack>
<IncludeBuildOutput>false</IncludeBuildOutput>
<ContentTargetFolders>content</ContentTargetFolders>
<NoWarn>$(NoWarn);NU5128</NoWarn>
<NoDefaultExcludes>true</NoDefaultExcludes>
<PackageReadmeFile>README.md</PackageReadmeFile>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<PackageOutputPath>.</PackageOutputPath>
</PropertyGroup>

<PropertyGroup>
<LocalizeTemplates>false</LocalizeTemplates>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.TemplateEngine.Tasks" Version="*" PrivateAssets="all" IsImplicitlyDefined="true" />
</ItemGroup>

<ItemGroup>
<Content Include="content\**\*" Exclude="content\**\bin\**;content\**\obj\**" />
<Compile Remove="**\*" />
</ItemGroup>

<ItemGroup>
<None Include="README.md" Pack="true" PackagePath="" />
</ItemGroup>

</Project>
25 changes: 25 additions & 0 deletions Milvasoft.Templates.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.11.35222.181
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Milvasoft.Templates", "Milvasoft.Templates.csproj", "{B99BFB1A-7ADB-4ED8-BE59-48D975A6C6CC}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{B99BFB1A-7ADB-4ED8-BE59-48D975A6C6CC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B99BFB1A-7ADB-4ED8-BE59-48D975A6C6CC}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B99BFB1A-7ADB-4ED8-BE59-48D975A6C6CC}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B99BFB1A-7ADB-4ED8-BE59-48D975A6C6CC}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {7B8D0568-4E97-4465-A3FB-3CCA2516A72E}
EndGlobalSection
EndGlobal
29 changes: 29 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
## Web API Template with EF Core for .Net 6


[![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/Milvasoft/Milvasoft/blob/master/LICENSE) [![NuGet](https://img.shields.io/nuget/v/Milvasoft.Templates)](https://www.nuget.org/packages/Milvasoft/) [![NuGet](https://img.shields.io/nuget/dt/Milvasoft.Templates)](https://www.nuget.org/packages/Milvasoft.Templates/)


### Create ready made project with [Milvasoft libraries](https://github.com/Milvasoft/Milvasoft) and Onion Architecture
### This templates contains integration with PostgreSQL, MongoDb but you can change what you want

***

# How can I create project with CLI?


- Install the latest [.NET Core SDK](https://dot.net) and [Visual Studio 2022](https://visualstudio.microsoft.com/tr/thank-you-downloading-visual-studio/?sku=Community&rel=16)
- Run `dotnet new install Milvasoft.Templates` to install the project template.
- Run `dotnet new milvonion --help` to see how to select the feature of the project.


# How can I create project with VS?


- Install the latest [.NET Core SDK](https://dot.net) and [Visual Studio 2022](https://visualstudio.microsoft.com/tr/thank-you-downloading-visual-studio/?sku=Community&rel=16)
- Run `dotnet new install Milvasoft.Templates` to install the project template.
- Close all Visual Studio instances.
- Open Visual Studio and click "Create New Project". Search for Milva, select template and click next.
- After that, steps are same as create project.

<br>
30 changes: 30 additions & 0 deletions content/Milvonion/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
**/.classpath
**/.dockerignore
**/.env
**/.git
**/.gitignore
**/.project
**/.settings
**/.toolstarget
**/.vs
**/.vscode
**/*.*proj.user
**/*.dbmdl
**/*.jfm
**/azds.yaml
**/bin
**/charts
**/docker-compose*
**/Dockerfile*
**/node_modules
**/npm-debug.log
**/obj
**/secrets.dev.yaml
**/values.dev.yaml
LICENSE
README.md
!**/.gitignore
!.git/HEAD
!.git/config
!.git/packed-refs
!.git/refs/heads/**
36 changes: 36 additions & 0 deletions content/Milvonion/.template.config/ide.host.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"$schema": "http://json.schemastore.org/vs-2017.3.host",
"icon": "milvalogo.png",
"symbolInfo": [
{
"id": "RoutePrefix",
"name": {
"text": "The api route prefix. (etc. /yourapi)"
}
},
{
"id": "HttpPort",
"name": {
"text": "The application's http port."
}
},
{
"id": "HttpsPort",
"name": {
"text": "The application's https port."
}
},
{
"id": "PostgreConnectionString",
"name": {
"text": "Your postgresql server connection string with database name."
}
},
{
"id": "Nullable",
"name": {
"text": "Set the nullable annotations and warnings context for the C# project. Possible values are enable, disable, warnings and annotations"
}
}
]
}
Binary file added content/Milvonion/.template.config/milvalogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
110 changes: 110 additions & 0 deletions content/Milvonion/.template.config/template.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
{
"$schema": "http://json.schemastore.org/template",
"author": "Milvasoft Corporation",
"classifications": [
"Common",
"Web",
"Solution",
"Service",
"Cloud"
],
"identity": "Milvonion",
"name": "Milvonion Api Template",
"shortName": "milvonion",
"sourceName": "Milvonion",
"tags": {
"language": "C#",
"type": "solution"
},
"defaultName": "Milvonion",
"description": "Api Template with Onion Architecture and Ef Core with PostgreSql.",
"symbols": {
"Framework": {
"type": "parameter",
"description": "The target framework for the project.",
"datatype": "choice",
"choices": [
{
"choice": "net6.0",
"description": "Target net6.0"
},
{
"choice": "net7.0",
"description": "Target net7.0"
},
{
"choice": "net8.0",
"description": "Target net8.0"
}
],
"replaces": "net8.0",
"defaultValue": "net8.0"
},
"RoutePrefix": {
"type": "parameter",
"description": "The api route prefix. (etc. /yourapi)",
"datatype": "text",
"replaces": "xrouteprefixx",
"defaultValue": "api"
},
"HttpPort": {
"type": "parameter",
"description": "The application's http port.",
"datatype": "text",
"replaces": "xhttpportxx",
"defaultValue": "5000"
},
"HttpsPort": {
"type": "parameter",
"description": "The application's https port.",
"datatype": "text",
"replaces": "xhttpsportxx",
"defaultValue": "5001"
},
"PostgreConnectionString": {
"type": "parameter",
"description": "Your postgresql server connection string with database name. (etc. Username=postgres;Password=yourpass;Server=yourserver;Port=5432;Database=yourdbname)",
"datatype": "text",
"replaces": "xconnectionstringxx",
"defaultValue": "Username=postgres;Password=yourpass;Server=yourserver;Port=5432;Database=yourdbname"
},
"Nullable": {
"type": "parameter",
"description": "Set the nullable annotations and warnings context for the C# project. Possible values are enable, disable, warnings and annotations",
"datatype": "choice",
"choices": [
{
"choice": "enable"
},
{
"choice": "disable"
},
{
"choice": "warnings"
},
{
"choice": "annotations"
}
],
"replaces": "xnullablexx",
"defaultValue": "disable"
}
},
"primaryOutputs": [
{
"path": "Milvonion.sln"
}
],
"sources": [
{
"source": "./", // Root dizinden kaynakları alır
"target": "./", // Root dizine kopyalar
"modifiers": [
{
"exclude": [ "**/.vs/**", ".template_config/**" ] // Gereksiz dosyaları hariç tutar
}
],
"flatten": true // Klasör yapısını düzleştirir, alt dizinlere kopyalamaz
}
]
}
87 changes: 87 additions & 0 deletions content/Milvonion/Milvonion.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.11.35222.181
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Milvonion.Api", "src\Milvonion.Api\Milvonion.Api.csproj", "{17249327-6FAE-4A8F-96CC-54648A322A29}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Milvonion.Domain", "src\Milvonion.Domain\Milvonion.Domain.csproj", "{1A88A39A-E1E3-48A5-87E3-06621DFB8267}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Milvonion.Infrastructure", "src\Milvonion.Infrastructure\Milvonion.Infrastructure.csproj", "{6C6CF317-B730-4268-88AD-BD66DFA16538}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Milvonion.Application", "src\Milvonion.Application\Milvonion.Application.csproj", "{D74E3A99-B3B6-48FD-ADE4-81CFC2710527}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{5FBD06AE-B62A-492D-831F-DB78F37646E0}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Milvonion.UnitTests", "tests\Milvonion.UnitTests\Milvonion.UnitTests.csproj", "{A0BCDB0E-9232-4B62-BE1D-F906205AC4EC}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Milvaonion.IntegrationTests", "tests\Milvaonion.IntegrationTests\Milvaonion.IntegrationTests.csproj", "{E97663AE-6998-4B4A-893C-183951D62C69}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{CEDCCDAA-0318-4501-BECE-B332558E2E8B}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Core", "Core", "{882BCA7A-27B4-415D-A20A-5E776DB8F756}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Infrastructure", "Infrastructure", "{5647F272-F14C-4248-8362-B3E2058E772A}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Presentation", "Presentation", "{4C6A0F97-3E5B-477B-A490-67403479D4D5}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "docs", "docs", "{B360E7C1-3C75-463F-AD06-0A0B0C6C4BD6}"
ProjectSection(SolutionItems) = preProject
docs\sampledoc.md = docs\sampledoc.md
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "build", "build", "{C80116B3-0CAA-4559-BD69-4F431B3B0EB7}"
ProjectSection(SolutionItems) = preProject
build\build.bat = build\build.bat
build\build.sh = build\build.sh
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{17249327-6FAE-4A8F-96CC-54648A322A29}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{17249327-6FAE-4A8F-96CC-54648A322A29}.Debug|Any CPU.Build.0 = Debug|Any CPU
{17249327-6FAE-4A8F-96CC-54648A322A29}.Release|Any CPU.ActiveCfg = Release|Any CPU
{17249327-6FAE-4A8F-96CC-54648A322A29}.Release|Any CPU.Build.0 = Release|Any CPU
{1A88A39A-E1E3-48A5-87E3-06621DFB8267}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1A88A39A-E1E3-48A5-87E3-06621DFB8267}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1A88A39A-E1E3-48A5-87E3-06621DFB8267}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1A88A39A-E1E3-48A5-87E3-06621DFB8267}.Release|Any CPU.Build.0 = Release|Any CPU
{6C6CF317-B730-4268-88AD-BD66DFA16538}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6C6CF317-B730-4268-88AD-BD66DFA16538}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6C6CF317-B730-4268-88AD-BD66DFA16538}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6C6CF317-B730-4268-88AD-BD66DFA16538}.Release|Any CPU.Build.0 = Release|Any CPU
{D74E3A99-B3B6-48FD-ADE4-81CFC2710527}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D74E3A99-B3B6-48FD-ADE4-81CFC2710527}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D74E3A99-B3B6-48FD-ADE4-81CFC2710527}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D74E3A99-B3B6-48FD-ADE4-81CFC2710527}.Release|Any CPU.Build.0 = Release|Any CPU
{A0BCDB0E-9232-4B62-BE1D-F906205AC4EC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A0BCDB0E-9232-4B62-BE1D-F906205AC4EC}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A0BCDB0E-9232-4B62-BE1D-F906205AC4EC}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A0BCDB0E-9232-4B62-BE1D-F906205AC4EC}.Release|Any CPU.Build.0 = Release|Any CPU
{E97663AE-6998-4B4A-893C-183951D62C69}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E97663AE-6998-4B4A-893C-183951D62C69}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E97663AE-6998-4B4A-893C-183951D62C69}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E97663AE-6998-4B4A-893C-183951D62C69}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{17249327-6FAE-4A8F-96CC-54648A322A29} = {4C6A0F97-3E5B-477B-A490-67403479D4D5}
{1A88A39A-E1E3-48A5-87E3-06621DFB8267} = {882BCA7A-27B4-415D-A20A-5E776DB8F756}
{6C6CF317-B730-4268-88AD-BD66DFA16538} = {5647F272-F14C-4248-8362-B3E2058E772A}
{D74E3A99-B3B6-48FD-ADE4-81CFC2710527} = {882BCA7A-27B4-415D-A20A-5E776DB8F756}
{A0BCDB0E-9232-4B62-BE1D-F906205AC4EC} = {CEDCCDAA-0318-4501-BECE-B332558E2E8B}
{E97663AE-6998-4B4A-893C-183951D62C69} = {CEDCCDAA-0318-4501-BECE-B332558E2E8B}
{882BCA7A-27B4-415D-A20A-5E776DB8F756} = {5FBD06AE-B62A-492D-831F-DB78F37646E0}
{5647F272-F14C-4248-8362-B3E2058E772A} = {5FBD06AE-B62A-492D-831F-DB78F37646E0}
{4C6A0F97-3E5B-477B-A490-67403479D4D5} = {5FBD06AE-B62A-492D-831F-DB78F37646E0}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {E888B99C-2561-4D2A-89D7-7F08183BC3E0}
EndGlobalSection
EndGlobal
Loading

0 comments on commit 595c399

Please sign in to comment.