{"id":15365918,"url":"https://github.com/ivanprodaiko94/node-server-example","last_synced_at":"2026-02-06T10:08:49.050Z","repository":{"id":42102450,"uuid":"209389954","full_name":"IvanProdaiko94/node-server-example","owner":"IvanProdaiko94","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-30T18:41:35.000Z","size":100,"stargazers_count":0,"open_issues_count":6,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-11T11:25:20.520Z","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/IvanProdaiko94.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":"2019-09-18T19:39:52.000Z","updated_at":"2019-09-19T18:36:35.000Z","dependencies_parsed_at":"2023-01-31T13:15:29.259Z","dependency_job_id":null,"html_url":"https://github.com/IvanProdaiko94/node-server-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/IvanProdaiko94/node-server-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IvanProdaiko94%2Fnode-server-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IvanProdaiko94%2Fnode-server-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IvanProdaiko94%2Fnode-server-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IvanProdaiko94%2Fnode-server-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IvanProdaiko94","download_url":"https://codeload.github.com/IvanProdaiko94/node-server-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IvanProdaiko94%2Fnode-server-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29157507,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-06T07:18:23.844Z","status":"ssl_error","status_checked_at":"2026-02-06T07:13:32.659Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-10-01T13:16:41.471Z","updated_at":"2026-02-06T10:08:49.034Z","avatar_url":"https://github.com/IvanProdaiko94.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Node server example\n\n## Run\n\nIn order to run the app one needs to set env variables:\n```.env\nSERVICE_PORT=\nHEALTHCHECK_PORT=\n``` \n\nstart:\n```bash\nnode index.js\n```\n\nexpected format:\n```json\n{\n    \"timestamp\": 1493758596,\n    \"data\": [\n        { \"title\": \"Part 1\", \"values\": [0, 3, 5, 6, 2, 9] },\n        { \"title\": \"Part 2\", \"values\": [6, 3, 1, 3, 9, 4] }\n    ]\n}\n```\n\ncompute the result:\n```bash\ncurl -d '{\n             \"timestamp\": 1493758596,\n             \"data\": [\n                 { \"title\": \"Part 1\", \"values\": [0, 3, 5, 6, 2, 9] },\n                 { \"title\": \"Part 2\", \"values\": [6, 3, 1, 3, 9, 4] }\n             ]\n         }' -H \"Content-Type: application/json\" -X POST http://localhost:{port}/compute/{request_id}\n```\n\n## Run app in docker\n\nbuilding the app:\n\n```bash\ndocker build -t \u003cyour username\u003e/node-web-app .\n```\n\nrunning the app:\n```bash\ndocker run -p 8080:8080 -p 8888:8888 --env SERVICE_PORT=8080 --env HEALTHCHECK_PORT=8888 -d \u003cyour username\u003e/node-web-app\n```\n\ncompute the result:\n```bash\ncurl -d '{\n             \"timestamp\": 1493758596,\n             \"data\": [\n                 { \"title\": \"Part 1\", \"values\": [0, 3, 5, 6, 2, 9] },\n                 { \"title\": \"Part 2\", \"values\": [6, 3, 1, 3, 9, 4] }\n             ]\n         }' -H \"Content-Type: application/json\" -X POST http://localhost:{port}/compute/{request_id}\n```\n\n## Run tests\n```bash\nnpm test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivanprodaiko94%2Fnode-server-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fivanprodaiko94%2Fnode-server-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivanprodaiko94%2Fnode-server-example/lists"}