You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: MinimalClean/README.template.md
+21-8Lines changed: 21 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,11 +21,24 @@ dotnet run --project src/MinimalClean.Architecture.AspireHost
21
21
22
22
### Database Setup
23
23
24
+
This template uses **SQL Server in a container** managed by Aspire. When you run the Aspire AppHost, it automatically starts a SQL Server container and creates the database.
25
+
26
+
#### Option 1: Run with Aspire (Recommended)
27
+
24
28
```powershell
25
-
dotnet ef database update -c AppDbContext -p src/MinimalClean.Architecture.Web -s src/MinimalClean.Architecture.Web
29
+
dotnet run --project src/MinimalClean.Architecture.AspireHost
26
30
```
27
31
28
-
The database file will be created at: `src/MinimalClean.Architecture.Web/ToDo.db`
32
+
The SQL Server container and database are automatically provisioned and migrations are applied on startup.
33
+
34
+
#### Option 2: Run Web project directly (SQL Server LocalDB)
35
+
36
+
If running the Web project without Aspire, update `appsettings.json` to use LocalDB:
37
+
38
+
```powershell
39
+
dotnet ef database update -c AppDbContext -p src/MinimalClean.Architecture.Web -s src/MinimalClean.Architecture.Web
40
+
dotnet run --project src/MinimalClean.Architecture.Web
41
+
```
29
42
30
43
## Project Structure
31
44
@@ -70,10 +83,10 @@ This minimal template simplifies the full Clean Architecture template:
0 commit comments