Skip to content

Commit 4f41531

Browse files
iammukeshmclaude
andcommitted
refactor: rename Playground.Api to FSH.Api, modernize Aspire setup
Rename: - Folder: Playground.Api/ → FSH.Api/ - Namespace: FSH.Playground.Api → FSH.Api - Assembly: FSH.Playground.Api → FSH.Api - Container: fsh-playground-api → fsh-api - Migrations: FSH.Playground.Migrations.PostgreSQL → FSH.Migrations.PostgreSQL Aspire improvements: - Add WithLifetime(ContainerLifetime.Persistent) for dev containers - Remove hardcoded OTEL endpoint (Aspire auto-injects) - Wire Blazor to API via WithReference() + service discovery - Add WithExternalHttpEndpoints() for dashboard links - Fix CachingOptions__EnableSsl=false for local Redis - Add WaitFor(api) on Blazor project Updated across ~50 files: solution, csproj refs, AppHost, Dockerfile, CI workflow, docker-compose, VS Code configs, all migration files, test projects, module refs, Terraform, CLAUDE.md, README, docs, agents. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent f3bc238 commit 4f41531

74 files changed

Lines changed: 2154 additions & 91 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.agents/rules/modules.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ public static class Extensions
252252
### 8. Wire Up in Program.cs
253253

254254
```csharp
255-
// In Playground.Api/Program.cs
255+
// In FSH.Api/Program.cs
256256
builder.Services.AddCatalogModule();
257257

258258
// ...

.agents/rules/persistence.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ dotnet ef migrations add InitialCatalog \
279279
### Applying Migrations
280280

281281
```bash
282-
# Automatic on startup (Playground.Api)
282+
# Automatic on startup (FSH.Api)
283283
# Or manually:
284284
dotnet ef database update \
285285
--project src/Playground/Migrations.PostgreSQL \

.agents/skills/add-entity/SKILL.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,11 @@ public sealed class {Module}DbContext : DbContext
125125
```bash
126126
dotnet ef migrations add Add{Entity} \
127127
--project src/Playground/Migrations.PostgreSQL \
128-
--startup-project src/Playground/Playground.Api
128+
--startup-project src/Playground/FSH.Api
129129

130130
dotnet ef database update \
131131
--project src/Playground/Migrations.PostgreSQL \
132-
--startup-project src/Playground/Playground.Api
132+
--startup-project src/Playground/FSH.Api
133133
```
134134

135135
## Interfaces Reference

.agents/skills/add-module/SKILL.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ dotnet sln src/FSH.Framework.slnx add src/Modules/{Name}/Modules.{Name}.Contract
152152

153153
## Step 7: Reference from API
154154

155-
In `src/Playground/Playground.Api/Playground.Api.csproj`:
155+
In `src/Playground/FSH.Api/FSH.Api.csproj`:
156156
```xml
157157
<ProjectReference Include="..\..\Modules\{Name}\Modules.{Name}\Modules.{Name}.csproj" />
158158
```
@@ -172,5 +172,5 @@ dotnet test src/FSH.Framework.slnx
172172
- [ ] DbContext created with proper schema
173173
- [ ] Registered in Program.cs moduleAssemblies
174174
- [ ] Added to solution file
175-
- [ ] Referenced from Playground.Api
175+
- [ ] Referenced from FSH.Api
176176
- [ ] Build passes with 0 warnings

.agents/workflows/migration-helper.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ You are a migration helper for FullStackHero .NET Starter Kit. Your job is to sa
77
## Project Paths
88

99
- **Migrations project:** `src/Playground/Migrations.PostgreSQL`
10-
- **Startup project:** `src/Playground/Playground.Api`
10+
- **Startup project:** `src/Playground/FSH.Api`
1111
- **DbContexts:** Each module has its own DbContext
1212

1313
## Common Operations
@@ -17,7 +17,7 @@ You are a migration helper for FullStackHero .NET Starter Kit. Your job is to sa
1717
```bash
1818
dotnet ef migrations add {MigrationName} \
1919
--project src/Playground/Migrations.PostgreSQL \
20-
--startup-project src/Playground/Playground.Api \
20+
--startup-project src/Playground/FSH.Api \
2121
--context {DbContextName}
2222
```
2323

@@ -32,7 +32,7 @@ dotnet ef migrations add {MigrationName} \
3232
```bash
3333
dotnet ef database update \
3434
--project src/Playground/Migrations.PostgreSQL \
35-
--startup-project src/Playground/Playground.Api \
35+
--startup-project src/Playground/FSH.Api \
3636
--context {DbContextName}
3737
```
3838

@@ -41,7 +41,7 @@ dotnet ef database update \
4141
```bash
4242
dotnet ef migrations list \
4343
--project src/Playground/Migrations.PostgreSQL \
44-
--startup-project src/Playground/Playground.Api \
44+
--startup-project src/Playground/FSH.Api \
4545
--context {DbContextName}
4646
```
4747

@@ -50,7 +50,7 @@ dotnet ef migrations list \
5050
```bash
5151
dotnet ef migrations remove \
5252
--project src/Playground/Migrations.PostgreSQL \
53-
--startup-project src/Playground/Playground.Api \
53+
--startup-project src/Playground/FSH.Api \
5454
--context {DbContextName}
5555
```
5656

@@ -59,7 +59,7 @@ dotnet ef migrations remove \
5959
```bash
6060
dotnet ef migrations script \
6161
--project src/Playground/Migrations.PostgreSQL \
62-
--startup-project src/Playground/Playground.Api \
62+
--startup-project src/Playground/FSH.Api \
6363
--context {DbContextName} \
6464
--output migrations.sql
6565
```
@@ -119,7 +119,7 @@ Check `__EFMigrationsHistory` table in database
119119
```bash
120120
dotnet ef migrations add Add{Entity} \
121121
--project src/Playground/Migrations.PostgreSQL \
122-
--startup-project src/Playground/Playground.Api \
122+
--startup-project src/Playground/FSH.Api \
123123
--context {Module}DbContext
124124
```
125125
6. Review migration file

.agents/workflows/module-creator.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ public sealed class {Name}DbContext : DbContext
121121
### Step 4: Register Module
122122

123123
Show changes needed in:
124-
1. `src/Playground/Playground.Api/Program.cs` - Add to moduleAssemblies
125-
2. `src/Playground/Playground.Api/Playground.Api.csproj` - Add ProjectReference
124+
1. `src/Playground/FSH.Api/Program.cs` - Add to moduleAssemblies
125+
2. `src/Playground/FSH.Api/FSH.Api.csproj` - Add ProjectReference
126126
3. Solution file - Add both projects
127127

128128
### Step 5: Add to Solution
@@ -140,7 +140,7 @@ dotnet sln src/FSH.Framework.slnx add src/Modules/{Name}/Modules.{Name}.Contract
140140
- [ ] DbContext created with schema
141141
- [ ] Registered in Program.cs
142142
- [ ] Added to solution
143-
- [ ] Referenced from Playground.Api
143+
- [ ] Referenced from FSH.Api
144144
- [ ] Build passes with 0 warnings
145145

146146
## Verification

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,10 +166,10 @@ jobs:
166166

167167
- name: Publish API container image
168168
run: |
169-
dotnet publish src/Playground/Playground.Api/Playground.Api.csproj \
169+
dotnet publish src/Playground/FSH.Api/FSH.Api.csproj \
170170
-c Release -r linux-x64 \
171171
-p:PublishProfile=DefaultContainer \
172-
-p:ContainerRepository=ghcr.io/${{ github.repository_owner }}/fsh-playground-api \
172+
-p:ContainerRepository=ghcr.io/${{ github.repository_owner }}/fsh-api \
173173
-p:ContainerImageTags='"dev-${{ github.sha }};dev-latest"'
174174
175175
- name: Publish Blazor container image
@@ -263,10 +263,10 @@ jobs:
263263

264264
- name: Build and push API container
265265
run: |
266-
dotnet publish src/Playground/Playground.Api/Playground.Api.csproj \
266+
dotnet publish src/Playground/FSH.Api/FSH.Api.csproj \
267267
-c Release -r linux-x64 \
268268
-p:PublishProfile=DefaultContainer \
269-
-p:ContainerRepository=ghcr.io/${{ github.repository_owner }}/fsh-playground-api \
269+
-p:ContainerRepository=ghcr.io/${{ github.repository_owner }}/fsh-api \
270270
-p:ContainerImageTags='"${{ steps.version.outputs.version }};latest"'
271271
272272
- name: Build and push Blazor container

.vscode/launch.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
"type": "coreclr",
77
"request": "launch",
88
"preLaunchTask": "build",
9-
"program": "${workspaceFolder}/src/Playground/Playground.Api/bin/Debug/net10.0/FSH.Playground.Api.dll",
9+
"program": "${workspaceFolder}/src/Playground/FSH.Api/bin/Debug/net10.0/FSH.Api.dll",
1010
"args": [],
11-
"cwd": "${workspaceFolder}/src/Playground/Playground.Api",
11+
"cwd": "${workspaceFolder}/src/Playground/FSH.Api",
1212
"stopAtEntry": false,
1313
"env": {
1414
"ASPNETCORE_ENVIRONMENT": "Development"

.vscode/tasks.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"args": [
4848
"run",
4949
"--project",
50-
"${workspaceFolder}/src/Playground/Playground.Api"
50+
"${workspaceFolder}/src/Playground/FSH.Api"
5151
],
5252
"problemMatcher": "$msCompile",
5353
"group": "none"

CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Additional module folders: `Domain/`, `Data/`, `Services/`, `Events/`, `Authoriz
6868
dotnet build src/FSH.Framework.slnx
6969

7070
# Run API (from repo root)
71-
dotnet run --project src/Playground/Playground.Api
71+
dotnet run --project src/Playground/FSH.Api
7272

7373
# Run with Aspire
7474
dotnet run --project src/Playground/FSH.Playground.AppHost

0 commit comments

Comments
 (0)