{"id":18276374,"url":"https://github.com/runthis/nodejs","last_synced_at":"2025-09-07T20:41:20.250Z","repository":{"id":63367728,"uuid":"567354689","full_name":"runthis/nodejs","owner":"runthis","description":null,"archived":false,"fork":false,"pushed_at":"2022-11-17T16:49:13.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-14T22:35:06.792Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/runthis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-11-17T16:02:08.000Z","updated_at":"2022-11-17T16:02:15.000Z","dependencies_parsed_at":"2022-11-17T17:45:18.273Z","dependency_job_id":null,"html_url":"https://github.com/runthis/nodejs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"kinsta/hello-world-nodejs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runthis%2Fnodejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runthis%2Fnodejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runthis%2Fnodejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runthis%2Fnodejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/runthis","download_url":"https://codeload.github.com/runthis/nodejs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247974734,"owners_count":21026742,"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":[],"created_at":"2024-11-05T12:15:54.034Z","updated_at":"2025-04-09T04:18:14.275Z","avatar_url":"https://github.com/runthis.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kinsta - Hello World - Node.js\nAn example of how to set your Node.js application up to enable deployment on Kinsta App Hosting services.\n\n\u003e Kinsta’s Application Hosting is a service to run your web apps and any databases side by side in a hassle-free environment, tailored for developer needs and ease of use. App Hosting is currently in an invite-only beta phase, sign up for a test account at [kinsta.com/application-hosting](https://kinsta.com/application-hosting/).\n\n## Dependency Management\nDuring the deployment process Kinsta will automatically install dependencies defined in your `package.json` file.\n\n## Web Server Setup\n\n### Port\nKinsta automatically sets the `PORT` environment variable. You should **not** define it yourself and you should **not** hard-code it into the application. Use `process.env.PORT` in your code when referring to the server port. \n\n```\napp.listen(process.env.PORT, () =\u003e {\n    console.log(`Hello World Application is running on port ${process.env.PORT}`)\n})\n```\n\n### Start Command\nWhen deploying an application Kinsta will automatically create a web process with `npm start` as the entry point. Make sure to use this command to run your server. If you would like to use another command you will need modify the runtime process in MyKinsta.\n\n```\n  \"scripts\": {\n    \"start\": \"node server.js\"\n  },\n```\n\n## Deployment Lifecycle\nWhenever a deployment is initiated (through creating an application or re-deploying due to an incoming commit) the `npm build` command is run, followed by the `npm start` command.  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frunthis%2Fnodejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frunthis%2Fnodejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frunthis%2Fnodejs/lists"}