Skip to content

Commit

Permalink
Removed dublicate description
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexanderbtw authored Mar 14, 2024
1 parent 2871197 commit 60a7474
Showing 1 changed file with 9 additions and 27 deletions.
36 changes: 9 additions & 27 deletions docs/whats-new/preview-4.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,33 +67,7 @@ In addition to new APIs, the .NET Aspire preview 4 release includes several impr

### More database management tools

.NET Aspire preview 4 introduces two new database management tools for managing MySQL and MongoDB databases, phpMyAdmin and mongo-express.

```csharp
var builder = DistributedApplication.CreateBuilder(args);

var mysql = builder.AddMySql("mysql")
.WithPhpMyAdmin()
.AddDatabase("mysql-db");

var mongo = builder.AddMongoDB("mongo")
.WithMongoExpress()
.AddDatabase("mongo-db");

builder.AddProject<Projects.Api>("api")
.WithReference(mysql)
.WithReference(mongo);

builder.Build().Run();
```

The preceding code creates a MySQL and MongoDB container with PhpMyAdmin and mongo-express configured.

:::image type="content" source="media/preview-4/dashboard-resources-with-mysql-and-mongoex.png" lightbox="media/preview-4/dashboard-resources-with-mysql-and-mongoex.png" alt-text=".NET Aspire dashboard: Resources tab showing mongo, mongo-mongoexpress, mysql, mysql-phpmyadmin, and an API.":::

**Mongo express**

:::image type="content" source="media/preview-4/mongo-express.png" lightbox="media/preview-4/mongo-express.png" alt-text="Mongo Express database UX.":::
.NET Aspire preview 4 [introduces two new database management tools](#addition-of-more-database-admin-tools) for managing MySQL and MongoDB databases, phpMyAdmin and mongo-express.

### New `Enrich` methods

Expand Down Expand Up @@ -313,6 +287,14 @@ builder.AddProject<Projects.WebApplication1>("api")
builder.Build().Run();
```

The preceding code creates a MySQL and MongoDB container with PhpMyAdmin and mongo-express configured.

:::image type="content" source="media/preview-4/dashboard-resources-with-mysql-and-mongoex.png" lightbox="media/preview-4/dashboard-resources-with-mysql-and-mongoex.png" alt-text=".NET Aspire dashboard: Resources tab showing mongo, mongo-mongoexpress, mysql, mysql-phpmyadmin, and an API.":::

**Mongo express**

:::image type="content" source="media/preview-4/mongo-express.png" lightbox="media/preview-4/mongo-express.png" alt-text="Mongo Express database UX.":::

<!--
## Ability to ignore launch profiles
Expand Down

0 comments on commit 60a7474

Please sign in to comment.