-
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.
- Loading branch information
Showing
41 changed files
with
8,167 additions
and
1 deletion.
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,30 @@ | ||
{ | ||
"name": "Lozano test area", | ||
"version": "1.0", | ||
"resources": "resources.yml", | ||
"clients": [ | ||
{ | ||
"name": "lozano-test-app", | ||
"directory": "src/web-app", | ||
"env": { | ||
"API_URL": "http://localhost:35500", | ||
"ISSUER_BASE_URL": "$tenant_base_url", | ||
"CLIENT_ID": "$client_id", | ||
"CLIENT_SECRET": "$client_secret", | ||
"SESSION_SECRET": "a long, randomly-generated string stored in env", | ||
"PORT": 37500 | ||
} | ||
} | ||
], | ||
"resourceServers": [ | ||
{ | ||
"name": "lozano-API", | ||
"directory": "src/api", | ||
"env": { | ||
"ISSUER_BASE_URL": "$tenant_base_url", | ||
"AUDIENCE": "$identifier", | ||
"PORT": 35500 | ||
} | ||
} | ||
] | ||
} |
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,8 @@ | ||
clients: # Add other client settings https://auth0.com/docs/api/management/v2#!/Clients/post_clients | ||
- | ||
name: "lozano-test-app" | ||
app_type: "regular_web" | ||
callbacks: | ||
- "http://localhost:37500/callback" | ||
allowed_logout_urls: | ||
- "http://localhost:37500/logout" |
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,16 @@ | ||
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.191.1/containers/javascript-node/.devcontainer/base.Dockerfile | ||
|
||
# [Choice] Node.js version: 16, 14, 12 | ||
ARG VARIANT="16-bullseye" | ||
FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:0-${VARIANT} | ||
|
||
# [Optional] Uncomment this section to install additional OS packages. | ||
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ | ||
# && apt-get -y install --no-install-recommends <your-package-list-here> | ||
|
||
# [Optional] Uncomment if you want to install an additional version of node using nvm | ||
# ARG EXTRA_NODE_VERSION=10 | ||
# RUN su node -c "source /usr/local/share/nvm/nvm.sh && nvm install ${EXTRA_NODE_VERSION}" | ||
|
||
# [Optional] Uncomment if you want to install more global node modules | ||
RUN su node -c "npm install -g --slient npm parcel-bundler concurrently eslint prettier" |
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,27 @@ | ||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at: | ||
// https://github.com/microsoft/vscode-dev-containers/tree/v0.191.1/containers/javascript-node | ||
{ | ||
"name": "lozano-test-app", | ||
"dockerComposeFile": "docker-compose.yml", | ||
"service":"lozano", | ||
"workspaceFolder": "/workspace", | ||
"settings": {}, | ||
"extensions": [ | ||
"dbaeumer.vscode-eslint", | ||
"EditorConfig.EditorConfig", | ||
"esbenp.prettier-vscode", | ||
"hjb2012.vscode-es6-string-html", | ||
"vsls-contrib.codetour", | ||
"mikestead.dotenv", | ||
"auth0.vscode-labs", | ||
"humao.rest-client", | ||
], | ||
"forwardPorts": [ | ||
35500, //API | ||
37500, //Web App | ||
], | ||
"shutdownAction": "stopCompose", | ||
"postStartCommand": "npm run init", | ||
"waitFor": "postStartCommand", | ||
"remoteUser": "node" | ||
} |
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,25 @@ | ||
version: '3.8' | ||
services: | ||
lozano: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
args: | ||
VARIANT: 16-bullseye | ||
deploy: | ||
resources: | ||
limits: | ||
cpus: '1' | ||
memory: '2g' | ||
reservations: | ||
cpus: '1' | ||
memory: '2g' | ||
volumes: | ||
# This is where VS Code should expect to find your project's source code and the value of "workspaceFolder" in .devcontainer/devcontainer.json | ||
- ..:/workspace:cached | ||
|
||
# Uncomment the next line to use Docker from inside the container. See https://aka.ms/vscode-remote/samples/docker-from-docker-compose for details. | ||
# - /var/run/docker.sock:/var/run/docker.sock | ||
|
||
# Overrides default command so things don't shut down after the process ends. | ||
command: /bin/sh -c "while sleep 1000; do :; done" |
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 |
---|---|---|
|
@@ -102,3 +102,6 @@ dist | |
|
||
# TernJS port file | ||
.tern-port | ||
|
||
# Let everyone use vscode as they want | ||
.vscode/ |
Oops, something went wrong.