| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- {
- "version": "0.2.0",
- "configurations": [
- {
- "type": "node",
- "request": "launch",
- "name": "app (TS-Node)",
- "skipFiles": ["<node_internals>/**"],
- "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": ["<node_internals>/**"],
- "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"
- }
- ]
- }
|