{"id":37955493,"url":"https://github.com/indellient/sample-node-app-no-hab","last_synced_at":"2026-01-16T18:00:23.635Z","repository":{"id":41927212,"uuid":"248786720","full_name":"Indellient/sample-node-app-no-hab","owner":"Indellient","description":"This is for testing non-chef habitat repos with ShuttleOps. The habitat folder has been taken out of the original sample-node-app and is put back using ShuttleOps.","archived":false,"fork":false,"pushed_at":"2022-12-09T01:21:09.000Z","size":80,"stargazers_count":1,"open_issues_count":5,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2023-03-03T17:12:16.302Z","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/Indellient.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":"2020-03-20T15:16:50.000Z","updated_at":"2021-12-08T15:46:36.000Z","dependencies_parsed_at":"2023-01-25T20:00:07.739Z","dependency_job_id":null,"html_url":"https://github.com/Indellient/sample-node-app-no-hab","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/Indellient/sample-node-app-no-hab","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Indellient%2Fsample-node-app-no-hab","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Indellient%2Fsample-node-app-no-hab/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Indellient%2Fsample-node-app-no-hab/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Indellient%2Fsample-node-app-no-hab/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Indellient","download_url":"https://codeload.github.com/Indellient/sample-node-app-no-hab/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Indellient%2Fsample-node-app-no-hab/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28480513,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"last_error":"SSL_read: 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":"2026-01-16T18:00:16.255Z","updated_at":"2026-01-16T18:00:23.464Z","avatar_url":"https://github.com/Indellient.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Habitat Sample Node App\n\nThis simple [Express](https://expressjs.com/) app is an example of how to package a Node.js application with Habitat. It's intended to accompany the walkthroughs on the Habitat website, but it can also be run locally on its own.\n\n### Follow the Demos!\n\nFor the full experience, we recommend [following the demos](https://www.habitat.sh/learn/) on the Habitat website. They walk you through getting set up with Habitat, [Builder](https://bldr.habitat.sh/), automated builds and publishing to Docker Hub.\n\nAlternatively, you can follow the instructions below if you simply want to build and run the app locally.\n\n![habitat-sample-node-app](https://user-images.githubusercontent.com/274700/39158589-d1170792-4715-11e8-8e2a-1a2696944500.png)\n\n### Prerequisites\n\nTo package and run this application with Habitat, you'll need to:\n\n* [Install and configure Habitat](https://www.habitat.sh/docs/install-habitat/)\n* [Install Docker](https://www.docker.com/community-edition) (if you're on Mac or Windows)\n* Clone this repository:\n\n      $ git clone https://github.com/habitat-sh/sample-node-app.git\n      $ cd sample-node-app\n\n\n### Setup for First-time Users\n\nBefore you can build the app, you'll need to create an origin and accompanying keys.\nThe quickest way to do this is by running `hab setup` [as described in the Habitat docs](https://www.habitat.sh/docs/install-habitat/#configure-workstation) and following the prompts:\n\n```\n$ hab setup\n```\n\n**Note**: The origin name you use during setup will need to be specified in the plan.sh file mentioned in the next section.\n\n### Building the Package\n\nFrom the `habitat` directory in this repository, open the `plan.sh` file. It should look like this:\n\n```\npkg_origin=your_origin\npkg_name=sample-node-app\npkg_version=\"1.1.0\"\npkg_deps=(core/node)\n...\n```\nFirst, change the value of `pkg_origin` from `your_origin` to the origin you created in the previous section. If you're following the [demo](https://www.habitat.sh/learn/), use the origin you created in [Habitat Builder](http://bldr.habitat.sh/).\n\nNext, let's change the version number:\n```\n...\npkg_version=\"1.1.1\"\n...\n```\n\nSave and close the file, then enter the Habitat Studio:\n\n```\n$ hab studio enter\n```\n\nAnd run a build:\n\n```\n[1][default:/src:0]# build\n```\n\nHabitat will produce a package (a `.hart` file) and place it in the `results` directory.\n\n### Running the Package with Docker\n\nStill in the Studio, right after the build, export that package as a Docker image:\n\n```\n[2][default:/src:0]# source results/last_build.env\n[3][default:/src:0]# hab pkg export docker results/$pkg_artifact\n```\n\nThen exit the Studio:\n\n```\n[4][default:/src:0]# exit\n```\nAnd start a Docker container with your newly created image:\n\n```\n$ docker run -it -p 8000:8000 \u003cYOUR_ORIGIN\u003e/sample-node-app\n```\n\nNow head to http://localhost:8000 and see your running app!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Findellient%2Fsample-node-app-no-hab","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Findellient%2Fsample-node-app-no-hab","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Findellient%2Fsample-node-app-no-hab/lists"}