{ "version": "0.2.0", "configurations": [ { "type": "node", "request": "launch", "name": "app (TS-Node)", "skipFiles": ["/**"], "program": "${workspaceFolder}/oms/src/app.ts", "runtimeArgs": [ "--require", "ts-node/register" // This tells Node.js to use ts-node to register a TypeScript transpiler ], "args": [], // Optional arguments for your script "env": { // You can add environment variables needed by your script here, "MONGO_URI": "mongodb://oms:oms123.@localhost:27017/omsdb?authSource=admin", "CLICKHOUSE_HOST": "http://localhost:8123", "CLICKHOUSE_DATABASE": "omsdb", "CLICKHOUSE_USER": "ckuser", "CLICKHOUSE_PASSWORD": "ckpassword" }, "cwd": "${workspaceFolder}/oms", // Set the current working directory to the 'oms' folder "console": "integratedTerminal", // Or "internalConsole" "internalConsoleOptions": "openOnSessionStart" }, { "type": "node", "request": "launch", "name": "ingestHistoricalData (TS-Node)", "skipFiles": ["/**"], "program": "${workspaceFolder}/oms/src/scripts/ingestHistoricalData.ts", "runtimeArgs": [ "--require", "ts-node/register" // This tells Node.js to use ts-node to register a TypeScript transpiler ], "args": [], // Optional arguments for your script "env": { // You can add environment variables needed by your script here, "MONGO_URI": "mongodb://oms:oms123.@localhost:27017/omsdb", "CLICKHOUSE_HOST": "http://localhost:8123", "CLICKHOUSE_DATABASE": "omsdb", "CLICKHOUSE_USER": "ckuser", "CLICKHOUSE_PASSWORD": "ckpassword", "START_DATE": "20250818", // Example date range "END_DATE": "20250820" }, "cwd": "${workspaceFolder}/oms", // Set the current working directory to the 'oms' folder "console": "integratedTerminal", // Or "internalConsole" "internalConsoleOptions": "openOnSessionStart" } ] }