Add project structures
This commit is contained in:
parent
8f50b551b9
commit
706ecb45a0
23
src/chat.API/Program.cs
Normal file
23
src/chat.API/Program.cs
Normal file
@ -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();
|
||||||
23
src/chat.API/Properties/launchSettings.json
Normal file
23
src/chat.API/Properties/launchSettings.json
Normal file
@ -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"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
8
src/chat.API/appsettings.Development.json
Normal file
8
src/chat.API/appsettings.Development.json
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"Logging": {
|
||||||
|
"LogLevel": {
|
||||||
|
"Default": "Information",
|
||||||
|
"Microsoft.AspNetCore": "Warning"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
9
src/chat.API/appsettings.json
Normal file
9
src/chat.API/appsettings.json
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"Logging": {
|
||||||
|
"LogLevel": {
|
||||||
|
"Default": "Information",
|
||||||
|
"Microsoft.AspNetCore": "Warning"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"AllowedHosts": "*"
|
||||||
|
}
|
||||||
13
src/chat.API/chat.API.csproj
Normal file
13
src/chat.API/chat.API.csproj
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<TargetFramework>net10.0</TargetFramework>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="10.0.1" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
</Project>
|
||||||
6
src/chat.API/chat.API.http
Normal file
6
src/chat.API/chat.API.http
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
@chat.API_HostAddress = http://localhost:5297
|
||||||
|
|
||||||
|
GET {{chat.API_HostAddress}}/weatherforecast/
|
||||||
|
Accept: application/json
|
||||||
|
|
||||||
|
###
|
||||||
9
src/chat.Application/chat.Application.csproj
Normal file
9
src/chat.Application/chat.Application.csproj
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<TargetFramework>net10.0</TargetFramework>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
</Project>
|
||||||
9
src/chat.Domain/chat.Domain.csproj
Normal file
9
src/chat.Domain/chat.Domain.csproj
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<TargetFramework>net10.0</TargetFramework>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
</Project>
|
||||||
9
src/chat.Infrastructure/chat.Infrastructure.csproj
Normal file
9
src/chat.Infrastructure/chat.Infrastructure.csproj
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<TargetFramework>net10.0</TargetFramework>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
</Project>
|
||||||
40
src/chat_application.sln
Normal file
40
src/chat_application.sln
Normal file
@ -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
|
||||||
Loading…
x
Reference in New Issue
Block a user