F0: fondamenta della soluzione, script, documenti e harness di test
- ViaFerrea.sln con Core e Protocol (net10.0 + net8.0), Server, Tools, Tests - Directory.Build.props con versione unica e warning come errori - Script build/test/check-nuget/publish-image (+ build.ps1) - Documenti: GUIDA, GDD, ARCHITECTURE, PROTOCOL (bozza), STATE, ADR 0001 - Harness di test interno con i primi test su Rng (xoshiro256**) - Immagini di riferimento 01-05 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0191R7vXgtbAvSV4V8tj8uzL
This commit is contained in:
36 files changed
+1647
-2
No files matched your search
@@ -0,0 +1,17 @@
|
||||
namespace ViaFerrea.Server;
|
||||
|
||||
/// <summary>
|
||||
/// Punto d'ingresso del server autorevole. In F0 espone solo /health; il ciclo di gioco,
|
||||
/// le sessioni WebSocket e le API dei salvataggi arrivano in F3.
|
||||
/// </summary>
|
||||
public static class ServerProgram
|
||||
{
|
||||
public static int Main(string[] args)
|
||||
{
|
||||
var builder = WebApplication.CreateSlimBuilder(args);
|
||||
var app = builder.Build();
|
||||
app.MapGet("/health", () => Results.Text("ok"));
|
||||
app.Run();
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||
|
||||
<!-- Server autorevole: ASP.NET Core usato solo come shared framework. -->
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net10.0</TargetFramework>
|
||||
<RootNamespace>ViaFerrea.Server</RootNamespace>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\ViaFerrea.Core\ViaFerrea.Core.csproj" />
|
||||
<ProjectReference Include="..\ViaFerrea.Protocol\ViaFerrea.Protocol.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<!-- I file dati viaggiano accanto all'eseguibile. -->
|
||||
<ItemGroup>
|
||||
<Content Include="..\..\data\**\*.json" LinkBase="data" CopyToOutputDirectory="PreserveNewest" CopyToPublishDirectory="PreserveNewest" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"Logging": {
|
||||
"LogLevel": {
|
||||
"Default": "Information",
|
||||
"Microsoft.AspNetCore": "Warning"
|
||||
}
|
||||
},
|
||||
"AllowedHosts": "*"
|
||||
}
|
||||
Reference in new issue
Block a user