| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
A legacy .NET Core 3.1 content management system used as the starting point for the AWS Enterprise Breakthrough Advance (EBA) Modernization Workshop. The workshop demonstrates transforming a legacy .NET application to .NET 8 using AWS Transform, with automated CI/CD deployment via CodePipeline.
├── buildspec.yml # Unified build spec (works for both 3.1 and .NET 8) ├── OrchardLiteApp/ │ ├── OrchardLite.sln │ ├── Dockerfile # Legacy Dockerfile (3.1) │ └── OrchardLite.Web/ │ ├── Program.cs # Host builder entry point │ ├── Startup.cs # MVC + DB initialization │ ├── OrchardLite.Web.csproj # Target framework (netcoreapp3.1 → net8.0) │ ├── appsettings.json # Connection string template │ ├── Controllers/ │ │ └── HomeController.cs # Content listing, health check, dynamic env detection │ ├── Models/ │ │ └── ContentItem.cs # Content data model │ ├── Services/ │ │ └── DatabaseInitializer.cs # Auto-creates DB, table, seeds 100 records │ └── Views/ │ ├── Home/ │ │ ├── Index.cshtml # Dashboard with dynamic modernization status │ │ └── AllContent.cshtml # Full content listing │ └── Shared/ │ ├── _Layout.cshtml # Dynamic layout (badges adapt to runtime) │ └── Error.cshtml # Error page
The buildspec.yml is designed to work for both the legacy main branch and the transformed branch without any manual changes:
The Razor views are also self-adapting — _Layout.cshtml and Index.cshtml detect the .NET runtime version and database host at runtime to render the correct badges, warnings, and status indicators.
| Component | Legacy (main) | Transformed |
|---|---|---|
| Framework | .NET Core 3.1 | .NET 8 |
| Database | RDS MySQL 8.0 | Aurora Serverless v2 |
| Network | Public subnets | Private subnets with NAT |
| Connector | MySql.Data 8.0.33 | Updated by Transform |
| Config | Startup.cs pattern | Modernized by Transform |
| Variable | Description | Default |
|---|---|---|
| DB_HOST | MySQL/Aurora hostname | localhost |
| DB_PORT | Database port | 3306 |
| DB_NAME | Database name | OrchardLiteDB |
| DB_USER | Database username | root |
| DB_PASSWORD | Database password | password |
| Path | Description |
|---|---|
| / | Dashboard with content listing and modernization status |
| /all-content | All content items |
| /health | JSON health check (framework version, database type, phase) |
cd OrchardLiteApp/OrchardLite.Web
export DB_HOST=localhost
export DB_PORT=3306
export DB_NAME=OrchardLiteDB
export DB_USER=root
export DB_PASSWORD=yourpassword
dotnet runThis application intentionally uses patterns that AWS Transform will detect and modernize:
This project is licensed under the MIT-0 License. See the LICENSE file.
| Back | FazBrowse Home | New Git URL |