{"id":20408854,"url":"https://github.com/dockersamples/helloworld-demo-node","last_synced_at":"2025-10-14T13:10:00.404Z","repository":{"id":211362463,"uuid":"637761723","full_name":"dockersamples/helloworld-demo-node","owner":"dockersamples","description":"Example used to demonstrate docker init CLI for a simple Hello World Node Program","archived":false,"fork":false,"pushed_at":"2024-12-02T10:58:16.000Z","size":14,"stargazers_count":3,"open_issues_count":0,"forks_count":35,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-03-05T02:41:37.871Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dockersamples.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","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":"2023-05-08T11:02:02.000Z","updated_at":"2024-12-18T07:04:13.000Z","dependencies_parsed_at":"2024-12-02T19:05:33.238Z","dependency_job_id":null,"html_url":"https://github.com/dockersamples/helloworld-demo-node","commit_stats":null,"previous_names":["dockersamples/helloworld-demo-node"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dockersamples/helloworld-demo-node","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dockersamples%2Fhelloworld-demo-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dockersamples%2Fhelloworld-demo-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dockersamples%2Fhelloworld-demo-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dockersamples%2Fhelloworld-demo-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dockersamples","download_url":"https://codeload.github.com/dockersamples/helloworld-demo-node/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dockersamples%2Fhelloworld-demo-node/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279018702,"owners_count":26086604,"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-10-14T02:00:06.444Z","response_time":60,"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":[],"created_at":"2024-11-15T05:37:28.367Z","updated_at":"2025-10-14T13:10:00.388Z","avatar_url":"https://github.com/dockersamples.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A Simple Hello World Node Demo \n\nExample used to demonstrate ```docker init``` CLI for a simple Hello World Node Program\n\n\n## Run the application\n\n\n\n\n\nYou can simply use `node app.js` command.\n\n\nThis script creates a simple HTTP server that listens on port 8080 and returns a response with the message \"Hello from Docker!\" when accessed. You can save this script as app.js in your project directory and then run it using the command node app.js from the terminal.\n\n\nThose commands will start a http server listening on port `8080` \nand if your request `http://localhost:8080` you'll see the following output: \n```shell\n❯ curl http://localhost:8080\n\n          ##         .\n    ## ## ##        ==\n ## ## ## ## ##    ===\n/\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\\___/ ===\n{                       /  ===-\n\\______ O           __/\n \\    \\         __/\n  \\____\\_______/\n\n\nHello from Docker!\n\n```\n\n\n## Using Docker init\n\n### Run the following command:\n\n```bash\n docker init\n```\n\nThis utility will walk you through creating the following files with sensible defaults for your project:\n  - .dockerignore\n  - Dockerfile\n  - docker-compose.yaml\n\n\n## Install the Dependencies\n\n```\n npm install\n```\n \n ## Running the container service\n \n ```\n  docker compose up -d --build\n ```\n \n ## Accessing the Node app\n \n ```\n curl localhost:8080\n\n          ##         .\n    ## ## ##        ==\n ## ## ## ## ##    ===\n/\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\\___/ ===\n{                       /  ===-\n\\______ O           __/\n \\    \\         __/\n  \\____\\_______/\n\n\nHello from Docker!\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdockersamples%2Fhelloworld-demo-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdockersamples%2Fhelloworld-demo-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdockersamples%2Fhelloworld-demo-node/lists"}