diff --git a/src/Vegasco.Server.AppHost/Program.cs b/src/Vegasco.Server.AppHost/Program.cs index 5d592bc..b56fd3e 100644 --- a/src/Vegasco.Server.AppHost/Program.cs +++ b/src/Vegasco.Server.AppHost/Program.cs @@ -7,9 +7,15 @@ IResourceBuilder postgres = builder.AddPostgres(Consta .WithDataVolume() .AddDatabase(Constants.Database.Name); -builder +IResourceBuilder api = builder .AddProject(Constants.Projects.Api) .WithReference(postgres) .WaitFor(postgres); +builder + .AddNpmApp("Vegasco-Web", "../Vegasco-Web") + .WithReference(api) + .WaitFor(api) + .WithHttpEndpoint(targetPort: 4200); + builder.Build().Run(); diff --git a/src/Vegasco.Server.AppHost/Vegasco.Server.AppHost.csproj b/src/Vegasco.Server.AppHost/Vegasco.Server.AppHost.csproj index e4de3b0..dc8b747 100644 --- a/src/Vegasco.Server.AppHost/Vegasco.Server.AppHost.csproj +++ b/src/Vegasco.Server.AppHost/Vegasco.Server.AppHost.csproj @@ -13,6 +13,7 @@ + 3.7.115