Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
dlozlla committed Feb 21, 2022
1 parent 782b97a commit 82dc9f7
Show file tree
Hide file tree
Showing 41 changed files with 8,167 additions and 1 deletion.
Binary file added .DS_Store
Binary file not shown.
30 changes: 30 additions & 0 deletions .auth0/lab/environment.json
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
}
}
]
}
8 changes: 8 additions & 0 deletions .auth0/lab/resources.yml
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"
16 changes: 16 additions & 0 deletions .devcontainer/Dockerfile
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"
27 changes: 27 additions & 0 deletions .devcontainer/devcontainer.json
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"
}
25 changes: 25 additions & 0 deletions .devcontainer/docker-compose.yml
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"
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,6 @@ dist

# TernJS port file
.tern-port

# Let everyone use vscode as they want
.vscode/
Loading

0 comments on commit 82dc9f7

Please sign in to comment.