diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 865f15b..d3eacbf 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -12,10 +12,13 @@ }, "ghcr.io/devcontainers/features/docker-in-docker": { "moby": false + }, + "ghcr.io/devcontainers/features/dotnet": { + "version": "latest" } }, - "postStartCommand": "copilot plugin marketplace add microsoft/github-copilot-for-azure && copilot plugin install azure@github-copilot-for-azure", + "postStartCommand": "copilot plugin install microsoft/github-copilot-for-azure:plugin", "postCreateCommand": "bash .devcontainer/post-create.sh" } diff --git a/.devcontainer/post-create.sh b/.devcontainer/post-create.sh index 63e8cee..8481386 100755 --- a/.devcontainer/post-create.sh +++ b/.devcontainer/post-create.sh @@ -14,10 +14,12 @@ npx playwright install curl -sSL https://aspire.dev/install.sh | bash # Trust HTTPS dev certificates -dotnet dev-certs https --trust +# dotnet dev-certs https --trust # Install TypeScript language server for Copilot CLI LSP support npm install -g typescript-language-server # Install Python docs tooling pip install mkdocs mkdocs-material + +source /home/node/.bashrc diff --git a/apphost.cs b/apphost.cs index 3da9055..48912b5 100644 --- a/apphost.cs +++ b/apphost.cs @@ -1,12 +1,13 @@ -#:sdk Aspire.AppHost.Sdk@13.1.0 -#:package Aspire.Hosting.JavaScript@13.1.0 -#:package Aspire.Hosting.Python@13.1.0 +#:sdk Aspire.AppHost.Sdk@13.2.0 +#:package Aspire.Hosting.JavaScript@13.2.0 +#:package Aspire.Hosting.Python@13.2.0 var builder = DistributedApplication.CreateBuilder(args); // API — Express.js / TypeScript backend var api = builder.AddJavaScriptApp("api", "./src/api") .WithEnvironment("JWT_SECRET", "aspire-local-dev-jwt-secret") + .WithHttpEndpoint(port: 5001, env: "PORT") .WithHttpHealthCheck("/health"); // Web — Next.js frontend diff --git a/aspire.config.json b/aspire.config.json new file mode 100644 index 0000000..a777aa5 --- /dev/null +++ b/aspire.config.json @@ -0,0 +1,5 @@ +{ + "appHost": { + "path": "apphost.cs" + } +}