launch.json 2.2 KB

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