Skip to content
Open
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
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,7 @@ __pycache__
node_modules
dist

.env
# Test coverage
.coverage
htmlcov/
.pytest_cache/
49 changes: 49 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"recommendations": [
// Python development
"ms-python.python",
"ms-python.vscode-pylance",
"ms-python.debugpy",
"charliermarsh.ruff",

// TypeScript/JavaScript/React
"prisma.prisma",
"dsznajder.es7-react-js-snippets",
"xabikos.ReactSnippets",
"esbenp.prettier-vscode",

// Web development
"bradlc.vscode-tailwindcss",
"PostCSS.postcss",

// Docker & DevOps
"ms-vscode-remote.remote-containers",
"ms-vscode-remote.remote-ssh",
"ms-azure-tools.vscode-docker",

// Database & Data
"mtxr.sqltools",
"rangav.vscode-thunder-client",

// Git & SCM
"eamodio.gitlens",
"GitHub.copilot",

// YAML/JSON
"redhat.vscode-yaml",
"asvetliakov.vscode-nedb",

// Testing
"hbenl.vscode-test-explorer",

// Code Quality
"sonarsource.sonarlint-vscode",

// General utilities
"ms-vscode.makefile-tools",
"usernamehw.errorlens",
"wakatime.vscode-wakatime",
"ms-vscode.live-server",
"thunder-client.thunder-client"
]
}
191 changes: 191 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,191 @@
{
"version": "0.2.0",
"inputs": [
{
"id": "logLevel",
"type": "pickString",
"description": "Select log level",
"options": [
"DEBUG",
"INFO",
"WARNING",
"ERROR",
"CRITICAL"
],
"default": "INFO"
}
],
"configurations": [
{
"name": "Backend (Python - Simulation)",
"type": "debugpy",
"request": "launch",
"program": "${workspaceFolder}/backend/main.py",
"console": "integratedTerminal",
"justMyCode": true,
"args": [
"--mode",
"simulation",
"--log-level",
"${input:logLevel}"
],
"env": {
"PYTHONUNBUFFERED": "1",
"PYTHONPATH": "${workspaceFolder}/backend"
},
"cwd": "${workspaceFolder}/backend",
"presentation": {
"hidden": false,
"group": "Backend",
"order": 1
}
},
{
"name": "Backend (Python - Normal/Gateway)",
"type": "debugpy",
"request": "launch",
"program": "${workspaceFolder}/backend/main.py",
"console": "integratedTerminal",
"justMyCode": true,
"args": [
"--log-level",
"${input:logLevel}"
],
"env": {
"PYTHONUNBUFFERED": "1",
"PYTHONPATH": "${workspaceFolder}/backend"
},
"cwd": "${workspaceFolder}/backend",
"presentation": {
"hidden": false,
"group": "Backend",
"order": 2
}
},
{
"name": "Backend (Python - Specific Site)",
"type": "debugpy",
"request": "launch",
"program": "${workspaceFolder}/backend/main.py",
"console": "integratedTerminal",
"justMyCode": true,
"args": [
"--mode",
"simulation",
"--site-id",
"wtp-porto-01",
"--log-level",
"${input:logLevel}"
],
"env": {
"PYTHONUNBUFFERED": "1",
"PYTHONPATH": "${workspaceFolder}/backend"
},
"cwd": "${workspaceFolder}/backend",
"presentation": {
"hidden": false,
"group": "Backend",
"order": 3
}
},
{
"name": "Frontend (React - Dev Server)",
"type": "node",
"request": "launch",
"runtimeExecutable": "npm",
"runtimeArgs": [
"run",
"dev"
],
"cwd": "${workspaceFolder}/frontend",
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"env": {
"VITE_API_URL": "http://localhost:5020"
},
"presentation": {
"hidden": false,
"group": "Frontend",
"order": 1
}
},
{
"name": "Frontend (React - Preview)",
"type": "node",
"request": "launch",
"runtimeExecutable": "npm",
"runtimeArgs": [
"run",
"preview"
],
"cwd": "${workspaceFolder}/frontend",
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"presentation": {
"hidden": false,
"group": "Frontend",
"order": 2
}
},
{
"name": "Frontend Tests",
"type": "node",
"request": "launch",
"runtimeExecutable": "npm",
"runtimeArgs": [
"run",
"test"
],
"cwd": "${workspaceFolder}/frontend",
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"presentation": {
"hidden": false,
"group": "Frontend",
"order": 3
}
}
],
"compounds": [
{
"name": "Full Stack (Backend Simulation + Frontend)",
"configurations": [
"Backend (Python - Simulation)",
"Frontend (React - Dev Server)"
],
"stopOnEntry": false,
"preLaunchTask": "",
"presentation": {
"hidden": false,
"group": "Full Stack",
"order": 1
}
},
{
"name": "Full Stack (Backend Gateway + Frontend)",
"configurations": [
"Backend (Python - Normal/Gateway)",
"Frontend (React - Dev Server)"
],
"stopOnEntry": false,
"presentation": {
"hidden": false,
"group": "Full Stack",
"order": 2
}
},
{
"name": "Full Stack (Specific Site + Frontend)",
"configurations": [
"Backend (Python - Specific Site)",
"Frontend (React - Dev Server)"
],
"stopOnEntry": false,
"presentation": {
"hidden": false,
"group": "Full Stack",
"order": 3
}
}
]
}
68 changes: 68 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{
// Python configuration
"python.defaultInterpreterPath": "${workspaceFolder}/.venv/bin/python",
"python.linting.enabled": true,
"python.linting.pylintEnabled": false,
"python.linting.flake8Enabled": true,
"python.formatting.provider": "black",
"[python]": {
"editor.defaultFormatter": "ms-python.python",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports": "explicit"
}
},

// TypeScript/JavaScript configuration
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
}
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
},

// YAML configuration
"[yaml]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
},

// General editor settings
"editor.rulers": [100, 120],
"editor.wordWrap": "on",
"files.exclude": {
"**/__pycache__": true,
"**/*.pyc": true,
"**/node_modules": true,
"**/.pytest_cache": true,
"**/.venv": true
},

// Search settings
"search.exclude": {
"**/__pycache__": true,
"**/.venv": true,
"**/node_modules": true,
"**/.pytest_cache": true
},

// Terminal settings
"terminal.integrated.defaultProfile.linux": "bash",
"terminal.integrated.cwd": "${workspaceFolder}",

// Debug configuration
"debug.console.fontSize": 12,
"debug.console.wordWrap": true,

// Extensions configuration
"extensions.ignoreRecommendations": false
}
Loading