platformplatform / PlatformPlatform

🚀 Pre-alpha state. A platform designed for building enterprise-grade, multi-tenant products using Azure, .NET, React, TypeScript, Infrastructure as Code, etc.
https://platformplatform.github.io
MIT License
227 stars 25 forks source link

Optimize frontend startup time when using Aspire #436

Closed tjementum closed 4 months ago

tjementum commented 4 months ago

Summary & Motivation

This update significantly reduces the time required to start the frontend with Aspire, improving the startup time from approximately 10 seconds to less than 1 second, depending on the machine.

Until now, starting the Aspire AppHost required a full build of all frontend artifacts by the WebApp, resulting in slow startup times and a subpar developer experience. When developing, we use the RSPack devserver, so these frontend artifacts were not needed. The WebApp.esproj has been updated to only generate the API contract based on the OpenAPI Api.json generated by the API build.

The GitHub workflow has been updated to build the frontend bundles needed for production.

Checklist

sonarcloud[bot] commented 4 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud