{"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":"2021-05-14T08:12:27","modified_gmt":"2021-05-14T08:12:27","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 in Our Standard Hosting Package<\/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=\"\" 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=\"\" 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=\"\" 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=\"\" 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=\"\" 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","protected":false},"excerpt":{"rendered":"<p>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 in Our Standard Hosting Package To set up a Node.js application using cPanel, use the following procedures. Step #1:&nbsp; Create the application for NODE.JS 1:&nbsp;In the&nbsp;SOFTWARE&nbsp;section of cPanel, click the&nbsp;Setup Node.js [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"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","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":2,"href":"https:\/\/yegara.com\/en\/guide\/wp-json\/wp\/v2\/posts\/213\/revisions"}],"predecessor-version":[{"id":223,"href":"https:\/\/yegara.com\/en\/guide\/wp-json\/wp\/v2\/posts\/213\/revisions\/223"}],"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}]}}