{"id":30657191,"url":"https://github.com/samuelteixeiras/nodeechoserver","last_synced_at":"2026-04-09T20:33:05.689Z","repository":{"id":49038306,"uuid":"141480474","full_name":"samuelteixeiras/nodeEchoServer","owner":"samuelteixeiras","description":"Echo server with node js and socket-io","archived":false,"fork":false,"pushed_at":"2022-12-08T07:41:34.000Z","size":406,"stargazers_count":0,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-31T10:59:18.939Z","etag":null,"topics":["docker","nodejs","socket-io"],"latest_commit_sha":null,"homepage":"https://github.com/samuelteixeiras/nodeEchoServer","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/samuelteixeiras.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}},"created_at":"2018-07-18T19:24:50.000Z","updated_at":"2022-03-23T22:09:29.000Z","dependencies_parsed_at":"2023-01-25T09:01:06.939Z","dependency_job_id":null,"html_url":"https://github.com/samuelteixeiras/nodeEchoServer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/samuelteixeiras/nodeEchoServer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samuelteixeiras%2FnodeEchoServer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samuelteixeiras%2FnodeEchoServer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samuelteixeiras%2FnodeEchoServer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samuelteixeiras%2FnodeEchoServer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samuelteixeiras","download_url":"https://codeload.github.com/samuelteixeiras/nodeEchoServer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samuelteixeiras%2FnodeEchoServer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272971549,"owners_count":25024099,"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","status":"online","status_checked_at":"2025-08-31T02:00:09.071Z","response_time":79,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["docker","nodejs","socket-io"],"created_at":"2025-08-31T11:11:12.058Z","updated_at":"2026-04-09T20:33:00.644Z","avatar_url":"https://github.com/samuelteixeiras.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Echo Server To Test HTTP Post Calls\n\nHttp server to test HTTP POST call, we have two endpoints: successfulNotification and failureNotification.\n\n\n## Message returned example:\n\n![Print](https://github.com/samuelteixeiras/nodeEchoServer/blob/master/imgs/print.png)\n\n\n## Running on local machine\n\nClone the repository: git clone https://github.com/samuelteixeiras/nodeEchoServer.git\n\nGo into the folder: `nodeEchoServer`\n\nRun the commands:\n\n`npm install`\n\n`npm start`\n\nOpen the browser and go to to http://localhost:3000\n\n`/successfulNotification`\n\nTo send a successful notification to the server, use the following command:\n### Successful Notification call example:\ncurl -X POST \\\n  http://localhost:3000/successfulNotification \\\n  -H 'content-type: application/json' \\\n  -H 'key: lpdlapdsa' \\\n  -d '{\t\"samuel\":\"test\"}'\n\n`/failureNotification`\n\nTo send a failure notification to the server, use the following command:\n\n### Failure Notification call example:\ncurl -X POST \\\n  http://localhost:3000/failureNotification \\\n  -H 'content-type: application/json' \\\n  -H 'key: lpdlapdsa' \\\n  -d '{\t\"samuel\":\"test\"}'\n\n---\n\n## Steps to create and run using a Docker container\n\ndocker build -t username/node-web-app .\n\ndocker run -p 8080:3000 -d username/node-web-app\n\nGo to http://localhost:8080\n\n\n## After Deploy call the server:\n\n### Successful Notification call example:\ncurl -X POST \\\n  http://localhost:8080/successfulNotification \\\n  -H 'content-type: application/json' \\\n  -H 'key: lpdlapdsa' \\\n  -d '{\t\"samuel\":\"test\"}'\n\n\n### Failure Notification call example:\ncurl -X POST \\\n  http://localhost:8080/failureNotification \\\n  -H 'content-type: application/json' \\\n  -H 'key: lpdlapdsa' \\\n  -d '{\t\"samuel\":\"test\"}'\n\n\n---\n\nCreated based on https://github.com/socketio/chat-example.git\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamuelteixeiras%2Fnodeechoserver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamuelteixeiras%2Fnodeechoserver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamuelteixeiras%2Fnodeechoserver/lists"}