{"id":21888657,"url":"https://github.com/swisscom/cf-sample-app-nodejs","last_synced_at":"2025-04-15T10:18:16.515Z","repository":{"id":46073662,"uuid":"55065905","full_name":"swisscom/cf-sample-app-nodejs","owner":"swisscom","description":"A sample Express application to deploy to Cloud Foundry which works out of the box.","archived":false,"fork":false,"pushed_at":"2024-10-16T15:16:23.000Z","size":156,"stargazers_count":5,"open_issues_count":0,"forks_count":18,"subscribers_count":32,"default_branch":"master","last_synced_at":"2025-04-15T10:17:49.158Z","etag":null,"topics":["cloud-foundry","express","nodejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/swisscom.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2016-03-30T13:36:32.000Z","updated_at":"2024-10-16T15:16:25.000Z","dependencies_parsed_at":"2024-10-18T08:49:56.856Z","dependency_job_id":null,"html_url":"https://github.com/swisscom/cf-sample-app-nodejs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swisscom%2Fcf-sample-app-nodejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swisscom%2Fcf-sample-app-nodejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swisscom%2Fcf-sample-app-nodejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swisscom%2Fcf-sample-app-nodejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/swisscom","download_url":"https://codeload.github.com/swisscom/cf-sample-app-nodejs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249048747,"owners_count":21204306,"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":["cloud-foundry","express","nodejs"],"created_at":"2024-11-28T11:16:29.808Z","updated_at":"2025-04-15T10:18:16.496Z","avatar_url":"https://github.com/swisscom.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CF Sample App Node.js\n\nA sample [Express](http://expressjs.com/) application to deploy to Cloud Foundry which works out of the box.\n\n## Run locally\n\n1. Install [Node.js and npm](https://nodejs.org/)\n1. Run `npm install`\n1. Run `npm start`\n1. Visit [http://localhost:3000](http://localhost:3000)\n\n## Run in the cloud\n\n1. Install the [cf CLI](https://github.com/cloudfoundry/cli#downloads)\n1. Run `cf push my-nodejs-app -m 128M --random-route`\n1. Visit the given URL\n\n## Tune app using environment variables\n\nThis application reads environment variables, which are rendered in the HTML view:\n - `TITLE`: page title\n - `MESSAGE`: page body\n\nIf you are running locally, set these variables before launching the app:\n```shell\n$ TITLE=\"New title\" MESSAGE=\"I am updating environment variables\" npm start\n```\n\nIf you deployed the app to Cloud Foundry, use these commands to set environment variables:\n```shell\n$ cf set-env my-nodejs-app TITLE \"New title\"\n$ cf set-env my-nodejs-app MESSAGE \"I am updating environment variables\"\n$ cf restage my-nodejs-app\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswisscom%2Fcf-sample-app-nodejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fswisscom%2Fcf-sample-app-nodejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswisscom%2Fcf-sample-app-nodejs/lists"}