launch.json 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. {
  2. "version": "0.2.0",
  3. "configurations": [
  4. {
  5. "type": "node",
  6. "request": "launch",
  7. "name": "app (TS-Node)",
  8. "skipFiles": ["<node_internals>/**"],
  9. "program": "${workspaceFolder}/oms/src/app.ts",
  10. "runtimeArgs": [
  11. "--require",
  12. "ts-node/register" // This tells Node.js to use ts-node to register a TypeScript transpiler
  13. ],
  14. "args": [], // Optional arguments for your script
  15. "env": {
  16. // You can add environment variables needed by your script here,
  17. "MONGO_URI": "mongodb://oms:oms123.@localhost:27017/omsdb?authSource=admin",
  18. "CLICKHOUSE_HOST": "http://localhost:8123",
  19. "CLICKHOUSE_DATABASE": "omsdb",
  20. "CLICKHOUSE_USER": "ckuser",
  21. "CLICKHOUSE_PASSWORD": "ckpassword"
  22. },
  23. "cwd": "${workspaceFolder}/oms", // Set the current working directory to the 'oms' folder
  24. "console": "integratedTerminal", // Or "internalConsole"
  25. "internalConsoleOptions": "openOnSessionStart"
  26. },
  27. {
  28. "type": "node",
  29. "request": "launch",
  30. "name": "ingestHistoricalData (TS-Node)",
  31. "skipFiles": ["<node_internals>/**"],
  32. "program": "${workspaceFolder}/oms/src/scripts/ingestHistoricalData.ts",
  33. "runtimeArgs": [
  34. "--require",
  35. "ts-node/register" // This tells Node.js to use ts-node to register a TypeScript transpiler
  36. ],
  37. "args": [], // Optional arguments for your script
  38. "env": {
  39. // You can add environment variables needed by your script here,
  40. "MONGO_URI": "mongodb://oms:oms123.@localhost:27017/omsdb",
  41. "CLICKHOUSE_HOST": "http://localhost:8123",
  42. "CLICKHOUSE_DATABASE": "omsdb",
  43. "CLICKHOUSE_USER": "ckuser",
  44. "CLICKHOUSE_PASSWORD": "ckpassword",
  45. "START_DATE": "20250818", // Example date range
  46. "END_DATE": "20250820"
  47. },
  48. "cwd": "${workspaceFolder}/oms", // Set the current working directory to the 'oms' folder
  49. "console": "integratedTerminal", // Or "internalConsole"
  50. "internalConsoleOptions": "openOnSessionStart"
  51. }
  52. ]
  53. }