{"id":213,"date":"2021-02-15T11:08:16","date_gmt":"2021-02-15T11:08:16","guid":{"rendered":"https:\/\/yegara.com\/en\/guide\/?p=213"},"modified":"2026-10-03T18:09:01","modified_gmt":"2026-10-03T18:09:01","slug":"how-to-create-a-node-js-application-on-yegara-host-cpanel","status":"publish","type":"post","link":"https:\/\/yegara.com\/en\/guide\/how-to-create-a-node-js-application-on-yegara-host-cpanel\/","title":{"rendered":"How to Create a Node.js Application on Yegara Host cPanel"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>In this article, we\u2019ll describe in detail how to work with Node.js apps and help you host your first basic \u201chello world\u201d node.js application on our Premium hosting package. Node.js is not available on Standard hosting.<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To set up a Node.js application using cPanel, use the following procedures.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step #1:&nbsp; Create the application for NODE.JS<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>1:<\/strong>&nbsp;In the&nbsp;SOFTWARE&nbsp;section of cPanel, click the&nbsp;Setup Node.js App&nbsp;icon to open the Node.js selector:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"236\" src=\"https:\/\/yegara.com\/en\/guide\/wp-content\/uploads\/2021\/02\/image-8-1024x236.png\" alt=\"In the SOFTWARE section of cPanel, click the Setup Node.js App icon to open the Node.js selector\" class=\"wp-image-214\" srcset=\"https:\/\/yegara.com\/en\/guide\/wp-content\/uploads\/2021\/02\/image-8-1024x236.png 1024w, https:\/\/yegara.com\/en\/guide\/wp-content\/uploads\/2021\/02\/image-8-300x69.png 300w, https:\/\/yegara.com\/en\/guide\/wp-content\/uploads\/2021\/02\/image-8-768x177.png 768w, https:\/\/yegara.com\/en\/guide\/wp-content\/uploads\/2021\/02\/image-8-1200x277.png 1200w, https:\/\/yegara.com\/en\/guide\/wp-content\/uploads\/2021\/02\/image-8.png 1360w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>2:<\/strong>&nbsp;On the Node.js selector page, click&nbsp;CREATE APPLICATION&nbsp;to start the application.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1013\" height=\"253\" src=\"https:\/\/yegara.com\/en\/guide\/wp-content\/uploads\/2021\/02\/image-9.png\" alt=\"On the Node.js selector page, click CREATE APPLICATION to start the application.\" class=\"wp-image-215\" srcset=\"https:\/\/yegara.com\/en\/guide\/wp-content\/uploads\/2021\/02\/image-9.png 1013w, https:\/\/yegara.com\/en\/guide\/wp-content\/uploads\/2021\/02\/image-9-300x75.png 300w, https:\/\/yegara.com\/en\/guide\/wp-content\/uploads\/2021\/02\/image-9-768x192.png 768w\" sizes=\"auto, (max-width: 1013px) 100vw, 1013px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>3:<\/strong>&nbsp;Fill in the fields on the application setup form  and click&nbsp;<strong>CREATE<\/strong>:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"989\" height=\"786\" src=\"https:\/\/yegara.com\/en\/guide\/wp-content\/uploads\/2021\/02\/image-10.png\" alt=\"Fill in the fields on the application setup form and click CREATE\" class=\"wp-image-216\" srcset=\"https:\/\/yegara.com\/en\/guide\/wp-content\/uploads\/2021\/02\/image-10.png 989w, https:\/\/yegara.com\/en\/guide\/wp-content\/uploads\/2021\/02\/image-10-300x238.png 300w, https:\/\/yegara.com\/en\/guide\/wp-content\/uploads\/2021\/02\/image-10-768x610.png 768w\" sizes=\"auto, (max-width: 989px) 100vw, 989px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The application starts automatically.&nbsp;To view&nbsp;a test page for the application, click&nbsp;<strong>OPEN<\/strong> or the application url you set above ( example.com\/app )<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You should see the&nbsp;<strong>It Works!<\/strong>&nbsp;message appear.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now that a working application is installed, you can enhance the environment with the&nbsp;<em>package.json<\/em>&nbsp;settings file. To do this, follow the next two procedures.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step #2: Create the package.json file<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">To create the&nbsp;<em>package.json<\/em>&nbsp;file, follow these steps:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>1:<\/strong> Open <strong>File manager<\/strong> In your cPanel <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"237\" src=\"https:\/\/yegara.com\/en\/guide\/wp-content\/uploads\/2021\/02\/image-11-1024x237.png\" alt=\"Open File manager In your cPanel\" class=\"wp-image-217\" srcset=\"https:\/\/yegara.com\/en\/guide\/wp-content\/uploads\/2021\/02\/image-11-1024x237.png 1024w, https:\/\/yegara.com\/en\/guide\/wp-content\/uploads\/2021\/02\/image-11-300x69.png 300w, https:\/\/yegara.com\/en\/guide\/wp-content\/uploads\/2021\/02\/image-11-768x178.png 768w, https:\/\/yegara.com\/en\/guide\/wp-content\/uploads\/2021\/02\/image-11-1200x277.png 1200w, https:\/\/yegara.com\/en\/guide\/wp-content\/uploads\/2021\/02\/image-11.png 1358w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">2: Go to the root of  the application folder you just created and Click&nbsp;<strong>+File<\/strong>&nbsp;to create a new file named <strong>package.json<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"742\" height=\"357\" src=\"https:\/\/yegara.com\/en\/guide\/wp-content\/uploads\/2021\/02\/image-12.png\" alt=\"Go to the root of the application folder you just created and Click +File to create a new file named package.json\" class=\"wp-image-218\" srcset=\"https:\/\/yegara.com\/en\/guide\/wp-content\/uploads\/2021\/02\/image-12.png 742w, https:\/\/yegara.com\/en\/guide\/wp-content\/uploads\/2021\/02\/image-12-300x144.png 300w\" sizes=\"auto, (max-width: 742px) 100vw, 742px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">3: Edit the File you created to add the following code to it. <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">{\n  \"name\": \"app\",\n  \"version\": \"1.0.0\",\n  \"description\": \"My App\",\n  \"main\": \"app.js\",\n  \"scripts\": {\n    \"test\": \"echo \\\"Error: no test specified\\\" &amp;&amp; exit 1\"\n  },\n  \"author\": \"\",\n  \"license\": \"ISC\"\n}<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">I hope this will help all the node.js tester to start their first node.js application with their first&nbsp;<strong>hello world application for node.js.&nbsp;<\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading yg-related-title\">Related guides<\/h2>\n\n\n\n<ul class=\"wp-block-list yg-related\">\n<li><a href=\"https:\/\/yegara.com\/en\/guide\/deploy-nodejs-laravel-or-react-app\/\">Deploy a Node.js, Laravel or React App on Your Hosting<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Set up and run your first Node.js app in cPanel with the Setup Node.js App tool, from creating the application to a working hello world.<\/p>\n","protected":false},"author":1,"featured_media":1093,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-213","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-how-to"],"_links":{"self":[{"href":"https:\/\/yegara.com\/en\/guide\/wp-json\/wp\/v2\/posts\/213","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yegara.com\/en\/guide\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yegara.com\/en\/guide\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yegara.com\/en\/guide\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yegara.com\/en\/guide\/wp-json\/wp\/v2\/comments?post=213"}],"version-history":[{"count":7,"href":"https:\/\/yegara.com\/en\/guide\/wp-json\/wp\/v2\/posts\/213\/revisions"}],"predecessor-version":[{"id":1417,"href":"https:\/\/yegara.com\/en\/guide\/wp-json\/wp\/v2\/posts\/213\/revisions\/1417"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/yegara.com\/en\/guide\/wp-json\/wp\/v2\/media\/1093"}],"wp:attachment":[{"href":"https:\/\/yegara.com\/en\/guide\/wp-json\/wp\/v2\/media?parent=213"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yegara.com\/en\/guide\/wp-json\/wp\/v2\/categories?post=213"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yegara.com\/en\/guide\/wp-json\/wp\/v2\/tags?post=213"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}