Skip to content

Commit 7ee224f

Browse files
committed
refactor: rename Conduit.Api to Abies.Conduit.Api
1 parent d943f5b commit 7ee224f

File tree

12 files changed

+96
-2
lines changed

12 files changed

+96
-2
lines changed

Conduit.Api/Conduit.Api.csproj renamed to Abies.Conduit.Api/Abies.Conduit.Api.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,8 @@
66
<ImplicitUsings>enable</ImplicitUsings>
77
</PropertyGroup>
88

9+
<ItemGroup>
10+
<ProjectReference Include="..\Abies.Conduit.ServiceDefaults\Abies.Conduit.ServiceDefaults.csproj" />
11+
</ItemGroup>
12+
913
</Project>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
using Microsoft.AspNetCore.Builder;
44
using Microsoft.Extensions.DependencyInjection;
55
using Microsoft.Extensions.Hosting;
6+
using Abies.Conduit.ServiceDefaults;
67
var builder = WebApplication.CreateBuilder(args);
78

89
// Add services to the container.
@@ -18,6 +19,8 @@
1819
});
1920
});
2021

22+
builder.AddServiceDefaults();
23+
2124
var app = builder.Build();
2225
// Configure middleware
2326
if (app.Environment.IsDevelopment())
@@ -34,6 +37,8 @@
3437
// Health check endpoint
3538
app.MapGet("/api/ping", () => Results.Json(new { pong = true }));
3639

40+
app.MapDefaultEndpoints();
41+
3742
// RealWorld Conduit API in-memory stores
3843
var users = new ConcurrentDictionary<string, UserRecord>(StringComparer.OrdinalIgnoreCase);
3944
var follows = new ConcurrentDictionary<string, HashSet<string>>(StringComparer.OrdinalIgnoreCase);
File renamed without changes.
File renamed without changes.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
<PropertyGroup>
3+
<OutputType>Exe</OutputType>
4+
<TargetFramework>net9.0</TargetFramework>
5+
<ImplicitUsings>enable</ImplicitUsings>
6+
<Nullable>enable</Nullable>
7+
</PropertyGroup>
8+
<ItemGroup>
9+
<PackageReference Include="Aspire.Hosting" Version="8.0.0" />
10+
</ItemGroup>
11+
</Project>

Abies.Conduit.AppHost/Program.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
using Aspire.Hosting;
2+
3+
var builder = DistributedApplication.CreateBuilder(args);
4+
5+
var api = builder.AddProject("conduit-api", "../Abies.Conduit.Api/Abies.Conduit.Api.csproj");
6+
7+
builder.AddProject("conduit-app", "../Abies.Conduit/Abies.Conduit.csproj")
8+
.WithReference(api);
9+
10+
builder.Build().Run();

Abies.Conduit.E2E/ConduitFixture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public async Task InitializeAsync()
1919
_playwright = await Playwright.CreateAsync();
2020
Browser = await _playwright.Chromium.LaunchAsync(new() { Headless = true });
2121

22-
var apiDir = System.IO.Path.GetFullPath(System.IO.Path.Combine(AppContext.BaseDirectory, "../../../../Conduit.Api"));
22+
var apiDir = System.IO.Path.GetFullPath(System.IO.Path.Combine(AppContext.BaseDirectory, "../../../../Abies.Conduit.Api"));
2323
var apiStart = new ProcessStartInfo("dotnet", "run --no-build --project " + apiDir)
2424
{
2525
WorkingDirectory = apiDir,
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
<PropertyGroup>
3+
<TargetFramework>net9.0</TargetFramework>
4+
<ImplicitUsings>enable</ImplicitUsings>
5+
<Nullable>enable</Nullable>
6+
</PropertyGroup>
7+
<ItemGroup>
8+
<FrameworkReference Include="Microsoft.AspNetCore.App" />
9+
</ItemGroup>
10+
</Project>

0 commit comments

Comments
 (0)