-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add devcontainers for client and server
added language links in readme Stop tracking .vscode/settings.json Stop tracking .devcontainer/update_settings.sh
- Loading branch information
Louis Low
committed
Sep 19, 2024
1 parent
67e0656
commit f671e35
Showing
21 changed files
with
1,036 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
{ | ||
"name": "Angular + Dotnet", | ||
"image": "mcr.microsoft.com/devcontainers/dotnet:8.0", | ||
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}", | ||
"forwardPorts": [ | ||
5000, | ||
5001, | ||
4200 | ||
], | ||
"portsAttributes": { | ||
"5000": { | ||
"label": "Dotnet HTTP", | ||
"onAutoForward": "openBrowserOnce" | ||
}, | ||
"5001": { | ||
"label": "Dotnet HTTPS", | ||
"onAutoForward": "openBrowserOnce" | ||
}, | ||
"4200": { | ||
"label": "Angular", | ||
"onAutoForward": "openBrowserOnce" | ||
} | ||
}, | ||
"secrets": { | ||
"BRAINTREE_MERCHANT_ID": { | ||
"description": "Sandbox merchant ID of the application.", | ||
"documentationUrl": "https://sandbox.braintreegateway.com/home" | ||
}, | ||
"BRAINTREE_PUBLIC_KEY": { | ||
"description": "Sandbox public key of the application.", | ||
"documentationUrl": "https://sandbox.braintreegateway.com/home" | ||
}, | ||
"BRAINTREE_PRIVATE_KEY": { | ||
"description": "Sandbox private key of the application.", | ||
"documentationUrl": "https://sandbox.braintreegateway.com/home" | ||
} | ||
}, | ||
"containerEnv": { | ||
"DOMAINS": "paypal.com", | ||
"VISIBLE_FOLDER_SERVER": "dotnet", | ||
"VISIBLE_FOLDER_CLIENT": "angular" | ||
}, | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"vsls-contrib.codetour", | ||
"PayPal.vscode-paypal", | ||
"ms-dotnettools.csharp" | ||
] | ||
}, | ||
"settings": { | ||
"git.openRepositoryInParentFolders": "always" | ||
}, | ||
"codespaces": { | ||
"openFiles": [ | ||
"README.md" | ||
] | ||
} | ||
}, | ||
"features": { | ||
"ghcr.io/devcontainers/features/node:1": { | ||
"version": "lts" | ||
} | ||
}, | ||
"postCreateCommand": "chmod +x .devcontainer/update_settings.sh && .devcontainer/update_settings.sh && cd server/dotnet && dotnet restore && cd /workspaces/${localWorkspaceFolderBasename}/client/angular && npm install", | ||
"postAttachCommand": "cd server/dotnet && dotnet run & cd /workspaces/${localWorkspaceFolderBasename}/client/angular && npm start --no-analytics" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
{ | ||
"name": "Angular + Java", | ||
"image": "mcr.microsoft.com/devcontainers/java:17", | ||
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}", | ||
"forwardPorts": [ | ||
8080, | ||
4200 | ||
], | ||
"portsAttributes": { | ||
"8080": { | ||
"label": "Java", | ||
"onAutoForward": "openBrowserOnce" | ||
}, | ||
"4200": { | ||
"label": "Angular", | ||
"onAutoForward": "openBrowserOnce" | ||
} | ||
}, | ||
"secrets": { | ||
"BRAINTREE_MERCHANT_ID": { | ||
"description": "Sandbox merchant ID of the application.", | ||
"documentationUrl": "https://sandbox.braintreegateway.com/home" | ||
}, | ||
"BRAINTREE_PUBLIC_KEY": { | ||
"description": "Sandbox public key of the application.", | ||
"documentationUrl": "https://sandbox.braintreegateway.com/home" | ||
}, | ||
"BRAINTREE_PRIVATE_KEY": { | ||
"description": "Sandbox private key of the application.", | ||
"documentationUrl": "https://sandbox.braintreegateway.com/home" | ||
} | ||
}, | ||
"containerEnv": { | ||
"DOMAINS": "paypal.com", | ||
"VISIBLE_FOLDER_SERVER": "java", | ||
"VISIBLE_FOLDER_CLIENT": "angular" | ||
}, | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"vsls-contrib.codetour", | ||
"PayPal.vscode-paypal", | ||
"vscjava.vscode-java-pack", | ||
"angular.ng-template" | ||
] | ||
}, | ||
"settings": { | ||
"git.openRepositoryInParentFolders": "always" | ||
}, | ||
"codespaces": { | ||
"openFiles": [ | ||
"README.md" | ||
] | ||
} | ||
}, | ||
"features": { | ||
"ghcr.io/devcontainers/features/java:1": { | ||
"version": "17", | ||
"installMaven": "true" | ||
}, | ||
"ghcr.io/devcontainers/features/node:1": { | ||
"version": "lts" | ||
} | ||
}, | ||
"postCreateCommand": "chmod +x .devcontainer/update_settings.sh && .devcontainer/update_settings.sh && cd /workspaces/${localWorkspaceFolderBasename}/server && touch java/.env && cd java && mvn clean install && cd /workspaces/${localWorkspaceFolderBasename}/client/angular && npm install", | ||
"postAttachCommand": "cd /workspaces/${localWorkspaceFolderBasename}/server/java && mvn spring-boot:run & cd /workspaces/${localWorkspaceFolderBasename}/client/angular && npm start --no-analytics" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
{ | ||
"name": "Angular + Node", | ||
"image": "mcr.microsoft.com/devcontainers/javascript-node:20", | ||
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}", | ||
"forwardPorts": [ | ||
3000, | ||
4200 | ||
], | ||
"portsAttributes": { | ||
"3000": { | ||
"label": "Node", | ||
"onAutoForward": "openBrowserOnce" | ||
}, | ||
"4200": { | ||
"label": "Angular", | ||
"onAutoForward": "openBrowserOnce" | ||
} | ||
}, | ||
"secrets": { | ||
"BRAINTREE_MERCHANT_ID": { | ||
"description": "Sandbox merchant ID of the application.", | ||
"documentationUrl": "https://sandbox.braintreegateway.com/home" | ||
}, | ||
"BRAINTREE_PUBLIC_KEY": { | ||
"description": "Sandbox public key of the application.", | ||
"documentationUrl": "https://sandbox.braintreegateway.com/home" | ||
}, | ||
"BRAINTREE_PRIVATE_KEY": { | ||
"description": "Sandbox private key of the application.", | ||
"documentationUrl": "https://sandbox.braintreegateway.com/home" | ||
} | ||
}, | ||
"containerEnv": { | ||
"DOMAINS": "paypal.com", | ||
"VISIBLE_FOLDER_SERVER": "node", | ||
"VISIBLE_FOLDER_CLIENT": "angular" | ||
}, | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"vsls-contrib.codetour", | ||
"PayPal.vscode-paypal", | ||
"dbaeumer.vscode-eslint" | ||
] | ||
}, | ||
"settings": { | ||
"git.openRepositoryInParentFolders": "always" | ||
}, | ||
"codespaces": { | ||
"openFiles": [ | ||
"README.md" | ||
] | ||
} | ||
}, | ||
"features": { | ||
"ghcr.io/devcontainers/features/node:1": { | ||
"version": "lts" | ||
} | ||
}, | ||
"postCreateCommand": "chmod +x .devcontainer/update_settings.sh && .devcontainer/update_settings.sh && cd server/node && npm install && cd /workspaces/${localWorkspaceFolderBasename}/client/angular && npm install", | ||
"postAttachCommand": "cd server/node && npm start & cd /workspaces/${localWorkspaceFolderBasename}/client/angular && npm start --no-analytics" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
{ | ||
"name": "Angular + PHP", | ||
"image": "mcr.microsoft.com/devcontainers/php:8", | ||
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}", | ||
"forwardPorts": [ | ||
8080, | ||
4200 | ||
], | ||
"portsAttributes": { | ||
"8080": { | ||
"label": "PHP", | ||
"onAutoForward": "openBrowserOnce" | ||
}, | ||
"4200": { | ||
"label": "Angular", | ||
"onAutoForward": "openBrowserOnce" | ||
} | ||
}, | ||
"secrets": { | ||
"BRAINTREE_MERCHANT_ID": { | ||
"description": "Sandbox merchant ID of the application.", | ||
"documentationUrl": "https://sandbox.braintreegateway.com/home" | ||
}, | ||
"BRAINTREE_PUBLIC_KEY": { | ||
"description": "Sandbox public key of the application.", | ||
"documentationUrl": "https://sandbox.braintreegateway.com/home" | ||
}, | ||
"BRAINTREE_PRIVATE_KEY": { | ||
"description": "Sandbox private key of the application.", | ||
"documentationUrl": "https://sandbox.braintreegateway.com/home" | ||
} | ||
}, | ||
"containerEnv": { | ||
"DOMAINS": "paypal.com", | ||
"VISIBLE_FOLDER_SERVER": "php", | ||
"VISIBLE_FOLDER_CLIENT": "angular" | ||
}, | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"vsls-contrib.codetour", | ||
"PayPal.vscode-paypal", | ||
"xdebug.php-debug" | ||
] | ||
}, | ||
"settings": { | ||
"git.openRepositoryInParentFolders": "always" | ||
}, | ||
"codespaces": { | ||
"openFiles": [ | ||
"README.md" | ||
] | ||
} | ||
}, | ||
"features": { | ||
"ghcr.io/devcontainers/features/node:1": { | ||
"version": "lts" | ||
} | ||
}, | ||
"postCreateCommand": "chmod +x .devcontainer/update_settings.sh && .devcontainer/update_settings.sh && cd /workspaces/${localWorkspaceFolderBasename}/server && touch php/.env && cd php && composer install && cd /workspaces/${localWorkspaceFolderBasename}/client/angular && npm install", | ||
"postAttachCommand": "cd server/php && php -S localhost:8080 -t public/ & cd /workspaces/${localWorkspaceFolderBasename}/client/angular && npm start --no-analytics" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
{ | ||
"name": "Angular + Python", | ||
"image": "mcr.microsoft.com/devcontainers/python:3.10", | ||
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}", | ||
"forwardPorts": [ | ||
8888, | ||
4200 | ||
], | ||
"portsAttributes": { | ||
"8888": { | ||
"label": "Python", | ||
"onAutoForward": "openBrowserOnce" | ||
}, | ||
"4200": { | ||
"label": "Angular", | ||
"onAutoForward": "openBrowserOnce" | ||
} | ||
}, | ||
"secrets": { | ||
"BRAINTREE_MERCHANT_ID": { | ||
"description": "Sandbox merchant ID of the application.", | ||
"documentationUrl": "https://sandbox.braintreegateway.com/home" | ||
}, | ||
"BRAINTREE_PUBLIC_KEY": { | ||
"description": "Sandbox public key of the application.", | ||
"documentationUrl": "https://sandbox.braintreegateway.com/home" | ||
}, | ||
"BRAINTREE_PRIVATE_KEY": { | ||
"description": "Sandbox private key of the application.", | ||
"documentationUrl": "https://sandbox.braintreegateway.com/home" | ||
} | ||
}, | ||
"containerEnv": { | ||
"DOMAINS": "paypal.com", | ||
"VISIBLE_FOLDER_SERVER": "python", | ||
"VISIBLE_FOLDER_CLIENT": "angular" | ||
}, | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"vsls-contrib.codetour", | ||
"PayPal.vscode-paypal", | ||
"ms-python.python" | ||
] | ||
}, | ||
"settings": { | ||
"git.openRepositoryInParentFolders": "always", | ||
"python.defaultInterpreterPath": "${workspaceFolder}/.venv/bin/python" | ||
}, | ||
"codespaces": { | ||
"openFiles": [ | ||
"README.md" | ||
] | ||
} | ||
}, | ||
"features": { | ||
"ghcr.io/devcontainers/features/node:1": { | ||
"version": "lts" | ||
} | ||
}, | ||
"postCreateCommand": "chmod +x .devcontainer/update_settings.sh && .devcontainer/update_settings.sh && cd server/python && python -m venv .venv && . .venv/bin/activate && pip install --upgrade pip && pip install -r requirements.txt && cd /workspaces/${localWorkspaceFolderBasename}/client/angular && npm install", | ||
"postAttachCommand": "cd server/python && . .venv/bin/activate && python app.py & cd /workspaces/${localWorkspaceFolderBasename}/client/angular && npm start --no-analytics" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
{ | ||
"name": "Angular + Ruby", | ||
"image": "mcr.microsoft.com/devcontainers/ruby:2.7", | ||
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}", | ||
"forwardPorts": [ | ||
4567, | ||
4200 | ||
], | ||
"portsAttributes": { | ||
"4567": { | ||
"label": "Ruby", | ||
"onAutoForward": "openBrowserOnce" | ||
}, | ||
"4200": { | ||
"label": "Angular", | ||
"onAutoForward": "openBrowserOnce" | ||
} | ||
}, | ||
"secrets": { | ||
"BRAINTREE_MERCHANT_ID": { | ||
"description": "Sandbox merchant ID of the application.", | ||
"documentationUrl": "https://sandbox.braintreegateway.com/home" | ||
}, | ||
"BRAINTREE_PUBLIC_KEY": { | ||
"description": "Sandbox public key of the application.", | ||
"documentationUrl": "https://sandbox.braintreegateway.com/home" | ||
}, | ||
"BRAINTREE_PRIVATE_KEY": { | ||
"description": "Sandbox private key of the application.", | ||
"documentationUrl": "https://sandbox.braintreegateway.com/home" | ||
} | ||
}, | ||
"containerEnv": { | ||
"DOMAINS": "paypal.com", | ||
"VISIBLE_FOLDER_SERVER": "ruby", | ||
"VISIBLE_FOLDER_CLIENT": "angular" | ||
}, | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"vsls-contrib.codetour", | ||
"PayPal.vscode-paypal", | ||
"rebornix.Ruby" | ||
] | ||
}, | ||
"settings": { | ||
"git.openRepositoryInParentFolders": "always" | ||
}, | ||
"codespaces": { | ||
"openFiles": [ | ||
"README.md" | ||
] | ||
} | ||
}, | ||
"features": { | ||
"ghcr.io/devcontainers/features/node:1": { | ||
"version": "lts" | ||
} | ||
}, | ||
"postCreateCommand": "chmod +x .devcontainer/update_settings.sh && .devcontainer/update_settings.sh && cd server/ruby && gem install bundler:1.17.2 && bundle _1.17.2_ install --path vendor/bundle && cd /workspaces/${localWorkspaceFolderBasename}/client/angular && npm install", | ||
"postAttachCommand": "cd server/ruby && bundle exec ruby src/server.rb & cd /workspaces/${localWorkspaceFolderBasename}/client/angular && npm start --no-analytics" | ||
} |
Oops, something went wrong.