-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0bfe328
commit 8805b4e
Showing
59 changed files
with
2,790 additions
and
53 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,4 @@ | ||
ARG VARIANT=20-bullseye | ||
FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:0-${VARIANT} | ||
|
||
# RUN npm install -g pnpm |
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,37 @@ | ||
{ | ||
"name": "BMI Query Param", | ||
"build": { | ||
"dockerfile": "../Dockerfile", | ||
"args": { | ||
"VARIANT": "20-bullseye" | ||
} | ||
}, | ||
|
||
"workspaceFolder": "/workspaces/lp2/public/codes/expressjs/bmi-query-param", | ||
|
||
"portsAttributes": { | ||
"3000": { | ||
"label": "Application", | ||
"onAutoForward": "openPreview" | ||
} | ||
}, | ||
|
||
"forwardPorts": [3000], | ||
|
||
"postCreateCommand": "npm install", | ||
|
||
"waitFor": "postCreateCommand", | ||
|
||
"postAttachCommand": { | ||
"Server": "npm start --host" | ||
}, | ||
|
||
"customizations": { | ||
"codespaces": { | ||
"openFiles": ["src/index.js"] | ||
}, | ||
"vscode": { | ||
"extensions": ["esbenp.prettier-vscode", "humao.rest-client"] | ||
} | ||
} | ||
} |
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,37 @@ | ||
{ | ||
"name": "BMI Body Param", | ||
"build": { | ||
"dockerfile": "../Dockerfile", | ||
"args": { | ||
"VARIANT": "20-bullseye" | ||
} | ||
}, | ||
|
||
"workspaceFolder": "/workspaces/lp2/public/codes/expressjs/bmi-body-param", | ||
|
||
"portsAttributes": { | ||
"3000": { | ||
"label": "Application", | ||
"onAutoForward": "openPreview" | ||
} | ||
}, | ||
|
||
"forwardPorts": [3000], | ||
|
||
"postCreateCommand": "npm install", | ||
|
||
"waitFor": "postCreateCommand", | ||
|
||
"postAttachCommand": { | ||
"Server": "npm start --host" | ||
}, | ||
|
||
"customizations": { | ||
"codespaces": { | ||
"openFiles": ["src/index.js"] | ||
}, | ||
"vscode": { | ||
"extensions": ["esbenp.prettier-vscode", "humao.rest-client"] | ||
} | ||
} | ||
} |
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,37 @@ | ||
{ | ||
"name": "BMI Router Param", | ||
"build": { | ||
"dockerfile": "../Dockerfile", | ||
"args": { | ||
"VARIANT": "20-bullseye" | ||
} | ||
}, | ||
|
||
"workspaceFolder": "/workspaces/lp2/public/codes/expressjs/bmi-router-param", | ||
|
||
"portsAttributes": { | ||
"3000": { | ||
"label": "Application", | ||
"onAutoForward": "openPreview" | ||
} | ||
}, | ||
|
||
"forwardPorts": [3000], | ||
|
||
"postCreateCommand": "npm install", | ||
|
||
"waitFor": "postCreateCommand", | ||
|
||
"postAttachCommand": { | ||
"Server": "npm start --host" | ||
}, | ||
|
||
"customizations": { | ||
"codespaces": { | ||
"openFiles": ["src/index.js"] | ||
}, | ||
"vscode": { | ||
"extensions": ["esbenp.prettier-vscode", "humao.rest-client"] | ||
} | ||
} | ||
} |
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,23 @@ | ||
{ | ||
"name": "LP2", | ||
"build": { | ||
"dockerfile": "Dockerfile" | ||
}, | ||
|
||
"postCreateCommand": "npm install", | ||
|
||
"waitFor": "postCreateCommand", | ||
|
||
"postAttachCommand": { | ||
"Astro dev": "npm run dev" | ||
}, | ||
|
||
"customizations": { | ||
"codespaces": { | ||
"openFiles": ["./src/pages/index.mdx"] | ||
}, | ||
"vscode": { | ||
"extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"] | ||
} | ||
} | ||
} |
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,37 @@ | ||
{ | ||
"name": "Hello Lang", | ||
"build": { | ||
"dockerfile": "../Dockerfile", | ||
"args": { | ||
"VARIANT": "20-bullseye" | ||
} | ||
}, | ||
|
||
"workspaceFolder": "/workspaces/lp2/public/codes/expressjs/hello-lang", | ||
|
||
"portsAttributes": { | ||
"3000": { | ||
"label": "Application", | ||
"onAutoForward": "openPreview" | ||
} | ||
}, | ||
|
||
"forwardPorts": [3000], | ||
|
||
"postCreateCommand": "npm install", | ||
|
||
"waitFor": "postCreateCommand", | ||
|
||
"postAttachCommand": { | ||
"Server": "npm start --host" | ||
}, | ||
|
||
"customizations": { | ||
"codespaces": { | ||
"openFiles": ["src/index.js"] | ||
}, | ||
"vscode": { | ||
"extensions": ["esbenp.prettier-vscode", "humao.rest-client"] | ||
} | ||
} | ||
} |
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,37 @@ | ||
{ | ||
"name": "Hello Simple", | ||
"build": { | ||
"dockerfile": "../Dockerfile", | ||
"args": { | ||
"VARIANT": "20-bullseye" | ||
} | ||
}, | ||
|
||
"workspaceFolder": "/workspaces/lp2/public/codes/expressjs/hello-simple", | ||
|
||
"portsAttributes": { | ||
"3000": { | ||
"label": "Application", | ||
"onAutoForward": "openPreview" | ||
} | ||
}, | ||
|
||
"forwardPorts": [3000], | ||
|
||
"postCreateCommand": "npm install", | ||
|
||
"waitFor": "postCreateCommand", | ||
|
||
"postAttachCommand": { | ||
"Server": "npm start --host" | ||
}, | ||
|
||
"customizations": { | ||
"codespaces": { | ||
"openFiles": ["src/index.js"] | ||
}, | ||
"vscode": { | ||
"extensions": ["esbenp.prettier-vscode", "humao.rest-client"] | ||
} | ||
} | ||
} |
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,37 @@ | ||
{ | ||
"name": "Invest App API Back-end", | ||
"build": { | ||
"dockerfile": "../Dockerfile", | ||
"args": { | ||
"VARIANT": "20-bullseye" | ||
} | ||
}, | ||
|
||
"workspaceFolder": "/workspaces/lp2/public/codes/expressjs/invest-app-api-back-end", | ||
|
||
"portsAttributes": { | ||
"3000": { | ||
"label": "Application", | ||
"onAutoForward": "openPreview" | ||
} | ||
}, | ||
|
||
"forwardPorts": [3000], | ||
|
||
"postCreateCommand": "npm install", | ||
|
||
"waitFor": "postCreateCommand", | ||
|
||
"postAttachCommand": { | ||
"Server": "npm start --host" | ||
}, | ||
|
||
"customizations": { | ||
"codespaces": { | ||
"openFiles": ["src/index.js"] | ||
}, | ||
"vscode": { | ||
"extensions": ["esbenp.prettier-vscode", "humao.rest-client"] | ||
} | ||
} | ||
} |
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,37 @@ | ||
{ | ||
"name": "Invest App API", | ||
"build": { | ||
"dockerfile": "../Dockerfile", | ||
"args": { | ||
"VARIANT": "20-bullseye" | ||
} | ||
}, | ||
|
||
"workspaceFolder": "/workspaces/lp2/public/codes/expressjs/invest-app-api", | ||
|
||
"portsAttributes": { | ||
"3000": { | ||
"label": "Application", | ||
"onAutoForward": "openPreview" | ||
} | ||
}, | ||
|
||
"forwardPorts": [3000], | ||
|
||
"postCreateCommand": "npm install", | ||
|
||
"waitFor": "postCreateCommand", | ||
|
||
"postAttachCommand": { | ||
"Server": "npm start --host" | ||
}, | ||
|
||
"customizations": { | ||
"codespaces": { | ||
"openFiles": ["src/index.js"] | ||
}, | ||
"vscode": { | ||
"extensions": ["esbenp.prettier-vscode", "humao.rest-client"] | ||
} | ||
} | ||
} |
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,59 @@ | ||
{ | ||
"name": "Invest App Auth", | ||
"build": { | ||
"dockerfile": "../Dockerfile", | ||
"args": { | ||
"VARIANT": "20-bullseye" | ||
} | ||
}, | ||
|
||
"workspaceFolder": "/workspaces/lp2/public/codes/expressjs/invest-app-auth", | ||
|
||
"portsAttributes": { | ||
"3000": { | ||
"label": "Application", | ||
"onAutoForward": "openPreview" | ||
} | ||
}, | ||
|
||
"forwardPorts": [3000], | ||
|
||
"postCreateCommand": "npm install && cp .env.example .env", | ||
|
||
"waitFor": "postCreateCommand", | ||
|
||
"postAttachCommand": { | ||
"Server": "npm start --host" | ||
}, | ||
|
||
// "remoteUser": "node", | ||
|
||
"containerEnv": { | ||
"DATABASE_URL": "file:./dev.db" | ||
}, | ||
|
||
"customizations": { | ||
"codespaces": { | ||
"openFiles": ["src/index.js"] | ||
}, | ||
"vscode": { | ||
"settings": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"editor.formatOnSave": true, | ||
// "editor.codeActionsOnSave": { | ||
// "source.fixAll.eslint": true | ||
// }, | ||
"[prisma]": { | ||
"editor.defaultFormatter": "prisma.prisma" | ||
}, | ||
}, | ||
"extensions": [ | ||
// "dbaeumer.vscode-eslint", | ||
"esbenp.prettier-vscode", | ||
"humao.rest-client", | ||
"qwtel.sqlite-viewer", | ||
"prisma.prisma" | ||
] | ||
} | ||
} | ||
} |
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,41 @@ | ||
{ | ||
"name": "Invest App Database", | ||
"build": { | ||
"dockerfile": "../Dockerfile", | ||
"args": { | ||
"VARIANT": "20-bullseye" | ||
} | ||
}, | ||
|
||
"workspaceFolder": "/workspaces/lp2/public/codes/expressjs/invest-app-db-simple", | ||
|
||
"portsAttributes": { | ||
"3000": { | ||
"label": "Application", | ||
"onAutoForward": "openPreview" | ||
} | ||
}, | ||
|
||
"forwardPorts": [3000], | ||
|
||
"postCreateCommand": "npm install", | ||
|
||
"waitFor": "postCreateCommand", | ||
|
||
"postAttachCommand": { | ||
"Server": "npm start --host" | ||
}, | ||
|
||
"customizations": { | ||
"codespaces": { | ||
"openFiles": ["src/index.js"] | ||
}, | ||
"vscode": { | ||
"extensions": [ | ||
"esbenp.prettier-vscode", | ||
"humao.rest-client", | ||
"qwtel.sqlite-viewer" | ||
] | ||
} | ||
} | ||
} |
Oops, something went wrong.