Skip to content
Closed
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
8 changes: 8 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM mcr.microsoft.com/devcontainers/typescript-node:24

RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
&& apt-get install -y --no-install-recommends \
docker.io \
&& apt-get clean -y && rm -rf /var/lib/apt/lists/*

RUN npx playwright install --with-deps chromium
62 changes: 62 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
"name": "Lazztech Boilerplate",
"build": {
"dockerfile": "Dockerfile"
},
"features": {
"ghcr.io/devcontainers/features/docker-from-docker:1": {
"version": "latest"
}
},
"forwardPorts": [3000],
"portsAttributes": {
"3000": {
"label": "NestJS App",
"onAutoForward": "notify"
}
},
"remoteEnv": {
"DATABASE_TYPE": "sqlite"
},
"postCreateCommand": "npm install",
"customizations": {
"vscode": {
"extensions": [
"esbenp.prettier-vscode",
"dbaeumer.vscode-eslint",
"hbenl.vscode-test-explorer",
"bradlc.vscode-tailwindcss",
"otovo-oss.htmx-tags",
"eamodio.gitlens",
"hediet.vscode-drawio",
"ms-azuretools.vscode-docker",
"cweijan.vscode-database-client2",
"ms-azuretools.vscode-containers",
"bierner.markdown-mermaid",
"streetsidesoftware.code-spell-checker",
"ms-playwright.playwright",
"orta.vscode-jest"
],
"settings": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
},
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact"
],
"typescript.tsdk": "node_modules/typescript/lib",
"tailwindCSS.includeLanguages": {
"handlebars": "html"
}
}
}
},
"mounts": [
"source=lazztech-boilerplate-node_modules,target=${containerWorkspaceFolder}/node_modules,type=volume"
]
}
11 changes: 11 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
node_modules
dist
data
.git
.github
.vscode
.devcontainer
*.md
*.log
.env.local
.env.*.local
26 changes: 26 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Debug NestJS",
"runtimeExecutable": "npm",
"runtimeArgs": ["run", "start:debug"],
"console": "integratedTerminal",
"serverReadyAction": {
"pattern": "Nest application successfully started",
"uriFormat": "http://localhost:%s",
"action": "openExternally"
}
},
{
"type": "node",
"request": "attach",
"name": "Attach to NestJS",
"port": 9229,
"restart": true,
"skipFiles": ["<node_internals>/**"]
}
]
}
Loading