{"id":27047202,"url":"https://github.com/rishant/remote-debug-nodejs-express-mongo-pm2-poc","last_synced_at":"2025-04-05T06:28:41.631Z","repository":{"id":254474721,"uuid":"846633186","full_name":"rishant/remote-debug-nodejs-express-mongo-pm2-poc","owner":"rishant","description":"remote debug nodejs express mongodb pm2","archived":false,"fork":false,"pushed_at":"2024-08-23T17:20:02.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-08-24T18:51:25.832Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rishant.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-23T16:10:41.000Z","updated_at":"2024-08-23T17:20:05.000Z","dependencies_parsed_at":"2024-08-23T18:41:34.126Z","dependency_job_id":"d9dad2e2-e159-4f47-b084-140503a6f618","html_url":"https://github.com/rishant/remote-debug-nodejs-express-mongo-pm2-poc","commit_stats":null,"previous_names":["rishant/remote-debug-nodejs-express-mongo-pm2-poc"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rishant%2Fremote-debug-nodejs-express-mongo-pm2-poc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rishant%2Fremote-debug-nodejs-express-mongo-pm2-poc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rishant%2Fremote-debug-nodejs-express-mongo-pm2-poc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rishant%2Fremote-debug-nodejs-express-mongo-pm2-poc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rishant","download_url":"https://codeload.github.com/rishant/remote-debug-nodejs-express-mongo-pm2-poc/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247299355,"owners_count":20916171,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-04-05T06:28:41.095Z","updated_at":"2025-04-05T06:28:41.620Z","avatar_url":"https://github.com/rishant.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\"# remote-debug-nodejs-express-mongo-pm2-poc\" \n\n# 1. Local Code `Run` without `PM2`:\n\n    cmd:\\\u003e npm start\n    --or--\n    cmd:\\\u003e node run dev\n    --or--\n    cmd:\\\u003e node --inspect=0.0.0.0:9229 src/server.js\n\n    ## Local Code Run Debug Enable:\n\n    ### Step: 1 - `Application Run`\n        cmd:\\\u003e node run debug\n\n    ### Step: 2 - `Attach to Node.js Remote bebugging local`\n        Goto: vscode debug plugin and project .vscode/launch.json \n\n# 2. Local Code `Run` with `PM2`:\n\n    ### Way: 1 - `Without PM2 config file`\n        cmd:\\\u003e pm2 start ./src/server.js --name \"user-management-app\" --env production --node-args=\"--inspect=0.0.0.0:9229\"\n        --or--\n        cmd:\\\u003e pm2 start ./src/server.js --name \"user-management-app\" -i 2 --env production --node-args=\"--inspect=0.0.0.0:9229\"\n        --or--\n        cmd:\\\u003e pm2 start ./src/server.js --name \"user-management-app\" -i max --env production --node-args=\"--inspect=0.0.0.0:9229\"\n\n    ### Way: 2 - `With PM2 config file`\n        cmd:\\\u003e pm2 start ecosystem.config.js --env production\n\n    ## Local Code Run Debug Enable:\n\n    ### Step: 1 - `Application Run`\n        cmd:\\\u003e node run debug\n\n    ### Step: 2 - `Attach to Node.js Remote bebugging local`\n        Goto: vscode debug plugin and project .vscode/launch.json \n\n## PM2 other commands \n    cmd:\\\u003e pm2 logs user-management-app\n    cmd:\\\u003e pm2 stop user-management-app\n    cmd:\\\u003e pm2 remove user-management-app\n    cmd:\\\u003e pm2 restart user-management-app\n\n# 3. Build `Docker Image`:\n    cmd:\\\u003e docker build -f Dockerfile -t user-management-app:v1 .\n\n# 4. Run `Docker Compose Script`\n    cmd:\\\u003e docker-compose up -d\n\n    ## Local Code Run Debug Enable:\n\n    ### Step: 1 - `Application Run`\n        cmd:\\\u003e node run debug\n\n    ### Step: 2 - `Attach to Node.js Remote bebugging host`\n        Goto: vscode debug plugin and project .vscode/launch.json \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frishant%2Fremote-debug-nodejs-express-mongo-pm2-poc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frishant%2Fremote-debug-nodejs-express-mongo-pm2-poc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frishant%2Fremote-debug-nodejs-express-mongo-pm2-poc/lists"}