Skip to content

Next Gen STEP AP242 Native-ish BREP Geometric Modeling Kernel

Fix Visual Studio F5 SPA debug wiring

Yuechen Li663fe55df834
diff --git a/Aetheris.Server/Aetheris.Server.csproj b/Aetheris.Server/Aetheris.Server.csproj
index e17ed5b7..d3dbef35 100644
--- a/Aetheris.Server/Aetheris.Server.csproj
+++ b/Aetheris.Server/Aetheris.Server.csproj
@@ -4,10 +4,15 @@
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
+ <SpaRoot>..\aetheris.client\</SpaRoot>
+ <SpaProxyServerUrl>https://localhost:5173</SpaProxyServerUrl>
+ <SpaProxyLaunchCommand>npm run dev</SpaProxyLaunchCommand>
+ <SpaProxyWorkingDirectory>$(SpaRoot)</SpaProxyWorkingDirectory>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="8.0.24" />
+ <PackageReference Include="Microsoft.AspNetCore.SpaProxy" Version="8.0.24" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.6.2" />
</ItemGroup>
diff --git a/Aetheris.Server/Properties/launchSettings.json b/Aetheris.Server/Properties/launchSettings.json
index 5bf4459b..5592ead3 100644
--- a/Aetheris.Server/Properties/launchSettings.json
+++ b/Aetheris.Server/Properties/launchSettings.json
@@ -13,7 +13,7 @@
"commandName": "Project",
"dotnetRunMessages": true,
"launchBrowser": true,
- "launchUrl": "swagger",
+ "launchUrl": "",
"applicationUrl": "http://localhost:5142",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development",
@@ -24,7 +24,7 @@
"commandName": "Project",
"dotnetRunMessages": true,
"launchBrowser": true,
- "launchUrl": "swagger",
+ "launchUrl": "",
"applicationUrl": "https://localhost:7145;http://localhost:5142",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development",
@@ -34,7 +34,7 @@
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
- "launchUrl": "swagger",
+ "launchUrl": "",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development",
"ASPNETCORE_HOSTINGSTARTUPASSEMBLIES": "Microsoft.AspNetCore.SpaProxy"
@@ -42,4 +42,3 @@
}
}
}
-
diff --git a/README.md b/README.md
index 850a4831..2de0a458 100644
--- a/README.md
+++ b/README.md
@@ -31,3 +31,32 @@ dotnet test Aetheris.Kernel.Core.Tests/Aetheris.Kernel.Core.Tests.csproj --no-bu
```
Kernel implementation milestones begin after M00.
+
+## Debug quickstart
+
+### Visual Studio (canonical)
+
+1. Open `Aetheris.slnx`.
+2. Set `Aetheris.Server` as the startup project.
+3. Press `F5`.
+
+Visual Studio launches the ASP.NET host and the Vite dev server automatically via SpaProxy, then opens the app root page. API traffic remains under `/api` and proxies to the backend automatically in development.
+
+### CLI (works everywhere, including VS Code terminals)
+
+Run in two terminals:
+
+```bash
+# Terminal 1
+cd Aetheris.Server
+dotnet watch run
+```
+
+```bash
+# Terminal 2
+cd aetheris.client
+npm run dev
+```
+
+Backend defaults to `https://localhost:7145` and the client dev server is pinned to `https://localhost:5173`.
+
diff --git a/aetheris.client/vite.config.ts b/aetheris.client/vite.config.ts
index ea7857ad..8d4c013c 100644
--- a/aetheris.client/vite.config.ts
+++ b/aetheris.client/vite.config.ts
@@ -60,7 +60,8 @@ export default defineConfig(({ command }) => ({
secure: false,
},
},
- port: parseInt(env.DEV_SERVER_PORT || '63354'),
+ port: 5173,
+ strictPort: true,
https: ensureCertificates(),
} : undefined,
}));