commit c7c778ceb1d067143974d98f7f957aeacfe0bf46 Author: Artemy <109195690+stalcker2288969@users.noreply.github.com> Date: Mon Jun 16 16:52:58 2025 +0700 created git diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..947f4f7 --- /dev/null +++ b/.gitignore @@ -0,0 +1,56 @@ +/packages/ +riderModule.iml +/_ReSharper.Caches/ + +## .NET (общие файлы и папки) +bin/ +obj/ +*.user +*.suo +*.userosscache +*.sln.docstates + +## Visual Studio +.vs/ +.vscode/ +*.code-workspace + +## ASP.NET Core специфичное +wwwroot/lib/ +appsettings.Development.json +appsettings.*.json + +## MAUI специфичное +**/Platforms/Android/bin/ +**/Platforms/Android/obj/ +**/Platforms/iOS/bin/ +**/Platforms/iOS/obj/ +**/Platforms/MacCatalyst/bin/ +**/Platforms/MacCatalyst/obj/ +**/Platforms/Tizen/bin/ +**/Platforms/Tizen/obj/ +**/Platforms/Windows/bin/ +**/Platforms/Windows/obj/ +**/Resources/**/*.designer.cs +**/*.apk +**/*.aab +**/*.app +**/*.xcarchive +**/*.xcuserstate +*.db + +## JetBrains Rider +.idea/ + +## Logs +*.log +logs/ + +## Папки для публикации +publish/ +artifacts/ + +## Конфигурации и кеши +*.swp +*.DS_Store +Thumbs.db diff --git a/Govor.API.Tests/Govor.API.Tests.csproj b/Govor.API.Tests/Govor.API.Tests.csproj new file mode 100644 index 0000000..d7f90e2 --- /dev/null +++ b/Govor.API.Tests/Govor.API.Tests.csproj @@ -0,0 +1,23 @@ + + + + net9.0 + latest + enable + enable + false + + + + + + + + + + + + + + + diff --git a/Govor.API.Tests/UnitTest1.cs b/Govor.API.Tests/UnitTest1.cs new file mode 100644 index 0000000..7b376d8 --- /dev/null +++ b/Govor.API.Tests/UnitTest1.cs @@ -0,0 +1,15 @@ +namespace Govor.API.Tests; + +public class Tests +{ + [SetUp] + public void Setup() + { + } + + [Test] + public void Test1() + { + Assert.Pass(); + } +} \ No newline at end of file diff --git a/Govor.API/Govor.API.csproj b/Govor.API/Govor.API.csproj new file mode 100644 index 0000000..c5521c1 --- /dev/null +++ b/Govor.API/Govor.API.csproj @@ -0,0 +1,18 @@ + + + + net9.0 + enable + enable + + + + + + + + + + + + diff --git a/Govor.API/Govor.http b/Govor.API/Govor.http new file mode 100644 index 0000000..3ffd471 --- /dev/null +++ b/Govor.API/Govor.http @@ -0,0 +1,6 @@ +@Govor_HostAddress = http://localhost:5041 + +GET {{Govor_HostAddress}}/weatherforecast/ +Accept: application/json + +### diff --git a/Govor.API/Program.cs b/Govor.API/Program.cs new file mode 100644 index 0000000..d5e0ef3 --- /dev/null +++ b/Govor.API/Program.cs @@ -0,0 +1,41 @@ +var builder = WebApplication.CreateBuilder(args); + +// Add services to the container. +// Learn more about configuring OpenAPI at https://aka.ms/aspnet/openapi +builder.Services.AddOpenApi(); + +var app = builder.Build(); + +// Configure the HTTP request pipeline. +if (app.Environment.IsDevelopment()) +{ + app.MapOpenApi(); +} + +app.UseHttpsRedirection(); + +var summaries = new[] +{ + "Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching" +}; + +app.MapGet("/weatherforecast", () => + { + var forecast = Enumerable.Range(1, 5).Select(index => + new WeatherForecast + ( + DateOnly.FromDateTime(DateTime.Now.AddDays(index)), + Random.Shared.Next(-20, 55), + summaries[Random.Shared.Next(summaries.Length)] + )) + .ToArray(); + return forecast; + }) + .WithName("GetWeatherForecast"); + +app.Run(); + +record WeatherForecast(DateOnly Date, int TemperatureC, string? Summary) +{ + public int TemperatureF => 32 + (int)(TemperatureC / 0.5556); +} \ No newline at end of file diff --git a/Govor.API/Properties/launchSettings.json b/Govor.API/Properties/launchSettings.json new file mode 100644 index 0000000..91aa164 --- /dev/null +++ b/Govor.API/Properties/launchSettings.json @@ -0,0 +1,23 @@ +{ + "$schema": "https://json.schemastore.org/launchsettings.json", + "profiles": { + "http": { + "commandName": "Project", + "dotnetRunMessages": true, + "launchBrowser": false, + "applicationUrl": "http://localhost:5041", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + }, + "https": { + "commandName": "Project", + "dotnetRunMessages": true, + "launchBrowser": false, + "applicationUrl": "https://localhost:7155;http://localhost:5041", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + } + } +} diff --git a/Govor.API/appsettings.Development.json b/Govor.API/appsettings.Development.json new file mode 100644 index 0000000..0c208ae --- /dev/null +++ b/Govor.API/appsettings.Development.json @@ -0,0 +1,8 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.AspNetCore": "Warning" + } + } +} diff --git a/Govor.API/appsettings.json b/Govor.API/appsettings.json new file mode 100644 index 0000000..10f68b8 --- /dev/null +++ b/Govor.API/appsettings.json @@ -0,0 +1,9 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.AspNetCore": "Warning" + } + }, + "AllowedHosts": "*" +} diff --git a/Govor.Core/Class1.cs b/Govor.Core/Class1.cs new file mode 100644 index 0000000..d98439d --- /dev/null +++ b/Govor.Core/Class1.cs @@ -0,0 +1,5 @@ +namespace Govor.Core; + +public class Class1 +{ +} \ No newline at end of file diff --git a/Govor.Core/Govor.Core.csproj b/Govor.Core/Govor.Core.csproj new file mode 100644 index 0000000..17b910f --- /dev/null +++ b/Govor.Core/Govor.Core.csproj @@ -0,0 +1,9 @@ + + + + net9.0 + enable + enable + + + diff --git a/Govor.Data/Class1.cs b/Govor.Data/Class1.cs new file mode 100644 index 0000000..b9205d3 --- /dev/null +++ b/Govor.Data/Class1.cs @@ -0,0 +1,5 @@ +namespace Govor.Data; + +public class Class1 +{ +} \ No newline at end of file diff --git a/Govor.Data/Govor.Data.csproj b/Govor.Data/Govor.Data.csproj new file mode 100644 index 0000000..17b910f --- /dev/null +++ b/Govor.Data/Govor.Data.csproj @@ -0,0 +1,9 @@ + + + + net9.0 + enable + enable + + + diff --git a/Govor.sln b/Govor.sln new file mode 100644 index 0000000..c9b7d9a --- /dev/null +++ b/Govor.sln @@ -0,0 +1,36 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Govor.API.Tests", "Govor.API.Tests\Govor.API.Tests.csproj", "{15031CBD-F319-4755-BA91-B86F20BD8E37}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Govor.API", "Govor.API\Govor.API.csproj", "{EA8F272F-4276-438A-9DEA-C58860A440AE}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Govor.Core", "Govor.Core\Govor.Core.csproj", "{F7BB1EC7-63D6-4525-ADE4-E4AC937E219D}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Govor.Data", "Govor.Data\Govor.Data.csproj", "{E4EDB179-7EB5-468D-9C1F-0CBE2E5E459E}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {15031CBD-F319-4755-BA91-B86F20BD8E37}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {15031CBD-F319-4755-BA91-B86F20BD8E37}.Debug|Any CPU.Build.0 = Debug|Any CPU + {15031CBD-F319-4755-BA91-B86F20BD8E37}.Release|Any CPU.ActiveCfg = Release|Any CPU + {15031CBD-F319-4755-BA91-B86F20BD8E37}.Release|Any CPU.Build.0 = Release|Any CPU + {EA8F272F-4276-438A-9DEA-C58860A440AE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {EA8F272F-4276-438A-9DEA-C58860A440AE}.Debug|Any CPU.Build.0 = Debug|Any CPU + {EA8F272F-4276-438A-9DEA-C58860A440AE}.Release|Any CPU.ActiveCfg = Release|Any CPU + {EA8F272F-4276-438A-9DEA-C58860A440AE}.Release|Any CPU.Build.0 = Release|Any CPU + {F7BB1EC7-63D6-4525-ADE4-E4AC937E219D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F7BB1EC7-63D6-4525-ADE4-E4AC937E219D}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F7BB1EC7-63D6-4525-ADE4-E4AC937E219D}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F7BB1EC7-63D6-4525-ADE4-E4AC937E219D}.Release|Any CPU.Build.0 = Release|Any CPU + {E4EDB179-7EB5-468D-9C1F-0CBE2E5E459E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {E4EDB179-7EB5-468D-9C1F-0CBE2E5E459E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {E4EDB179-7EB5-468D-9C1F-0CBE2E5E459E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {E4EDB179-7EB5-468D-9C1F-0CBE2E5E459E}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(NestedProjects) = preSolution + EndGlobalSection +EndGlobal diff --git a/Govor.sln.DotSettings b/Govor.sln.DotSettings new file mode 100644 index 0000000..6881a7a --- /dev/null +++ b/Govor.sln.DotSettings @@ -0,0 +1,2 @@ + + True \ No newline at end of file