diff --git a/src/chat.API/Program.cs b/src/chat.API/Program.cs new file mode 100644 index 0000000..666a9c5 --- /dev/null +++ b/src/chat.API/Program.cs @@ -0,0 +1,23 @@ +var builder = WebApplication.CreateBuilder(args); + +// Add services to the container. + +builder.Services.AddControllers(); +// 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(); + +app.UseAuthorization(); + +app.MapControllers(); + +app.Run(); diff --git a/src/chat.API/Properties/launchSettings.json b/src/chat.API/Properties/launchSettings.json new file mode 100644 index 0000000..bf7a610 --- /dev/null +++ b/src/chat.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:5297", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + }, + "https": { + "commandName": "Project", + "dotnetRunMessages": true, + "launchBrowser": false, + "applicationUrl": "https://localhost:7169;http://localhost:5297", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + } + } +} diff --git a/src/chat.API/appsettings.Development.json b/src/chat.API/appsettings.Development.json new file mode 100644 index 0000000..0c208ae --- /dev/null +++ b/src/chat.API/appsettings.Development.json @@ -0,0 +1,8 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.AspNetCore": "Warning" + } + } +} diff --git a/src/chat.API/appsettings.json b/src/chat.API/appsettings.json new file mode 100644 index 0000000..10f68b8 --- /dev/null +++ b/src/chat.API/appsettings.json @@ -0,0 +1,9 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.AspNetCore": "Warning" + } + }, + "AllowedHosts": "*" +} diff --git a/src/chat.API/chat.API.csproj b/src/chat.API/chat.API.csproj new file mode 100644 index 0000000..52dd1c3 --- /dev/null +++ b/src/chat.API/chat.API.csproj @@ -0,0 +1,13 @@ + + + + net10.0 + enable + enable + + + + + + + diff --git a/src/chat.API/chat.API.http b/src/chat.API/chat.API.http new file mode 100644 index 0000000..9bac374 --- /dev/null +++ b/src/chat.API/chat.API.http @@ -0,0 +1,6 @@ +@chat.API_HostAddress = http://localhost:5297 + +GET {{chat.API_HostAddress}}/weatherforecast/ +Accept: application/json + +### diff --git a/src/chat.Application/chat.Application.csproj b/src/chat.Application/chat.Application.csproj new file mode 100644 index 0000000..b760144 --- /dev/null +++ b/src/chat.Application/chat.Application.csproj @@ -0,0 +1,9 @@ + + + + net10.0 + enable + enable + + + diff --git a/src/chat.Domain/chat.Domain.csproj b/src/chat.Domain/chat.Domain.csproj new file mode 100644 index 0000000..b760144 --- /dev/null +++ b/src/chat.Domain/chat.Domain.csproj @@ -0,0 +1,9 @@ + + + + net10.0 + enable + enable + + + diff --git a/src/chat.Infrastructure/chat.Infrastructure.csproj b/src/chat.Infrastructure/chat.Infrastructure.csproj new file mode 100644 index 0000000..b760144 --- /dev/null +++ b/src/chat.Infrastructure/chat.Infrastructure.csproj @@ -0,0 +1,9 @@ + + + + net10.0 + enable + enable + + + diff --git a/src/chat_application.sln b/src/chat_application.sln new file mode 100644 index 0000000..5cda121 --- /dev/null +++ b/src/chat_application.sln @@ -0,0 +1,40 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 18 +VisualStudioVersion = 18.3.11312.210 d18.3 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "chat.Infrastructure", "chat.Infrastructure\chat.Infrastructure.csproj", "{C4382C35-1776-4F39-BF67-2BE197AB4283}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "chat.Domain", "chat.Domain\chat.Domain.csproj", "{3ED98938-5F3B-49D8-824B-95AFAF328A1F}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "chat.API", "chat.API\chat.API.csproj", "{DC1C6BF4-65E0-412E-ADDD-A2CCF6A9E032}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "chat.Application", "chat.Application\chat.Application.csproj", "{619A7FFA-4796-4731-93A3-4AFB002ABD3F}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {C4382C35-1776-4F39-BF67-2BE197AB4283}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {C4382C35-1776-4F39-BF67-2BE197AB4283}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C4382C35-1776-4F39-BF67-2BE197AB4283}.Release|Any CPU.ActiveCfg = Release|Any CPU + {C4382C35-1776-4F39-BF67-2BE197AB4283}.Release|Any CPU.Build.0 = Release|Any CPU + {3ED98938-5F3B-49D8-824B-95AFAF328A1F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {3ED98938-5F3B-49D8-824B-95AFAF328A1F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {3ED98938-5F3B-49D8-824B-95AFAF328A1F}.Release|Any CPU.ActiveCfg = Release|Any CPU + {3ED98938-5F3B-49D8-824B-95AFAF328A1F}.Release|Any CPU.Build.0 = Release|Any CPU + {DC1C6BF4-65E0-412E-ADDD-A2CCF6A9E032}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {DC1C6BF4-65E0-412E-ADDD-A2CCF6A9E032}.Debug|Any CPU.Build.0 = Debug|Any CPU + {DC1C6BF4-65E0-412E-ADDD-A2CCF6A9E032}.Release|Any CPU.ActiveCfg = Release|Any CPU + {DC1C6BF4-65E0-412E-ADDD-A2CCF6A9E032}.Release|Any CPU.Build.0 = Release|Any CPU + {619A7FFA-4796-4731-93A3-4AFB002ABD3F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {619A7FFA-4796-4731-93A3-4AFB002ABD3F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {619A7FFA-4796-4731-93A3-4AFB002ABD3F}.Release|Any CPU.ActiveCfg = Release|Any CPU + {619A7FFA-4796-4731-93A3-4AFB002ABD3F}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal