Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
4 changes: 3 additions & 1 deletion .devcontainer/post-create.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
7 changes: 4 additions & 3 deletions apphost.cs
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 5 additions & 0 deletions aspire.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"appHost": {
"path": "apphost.cs"
}
}
Loading