I wanted to host my Node js application using CPanel with shared hosting. Can you please help me with it.
There are few steps to host your Node.js App using Cpanel.
Login to your CPanel Account
Fill Application root, Application URL and Application Startup File and Click Create Button
Go to file Manager and Create package.json file in the app file directory. and add this
{ "name": "Node App", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "test": "echo "Error: no test specified" && exit 1" }, "author": "", "license": "ISC" }
Go to Setup Node.js App and select Edit icon to run npm install
it may take time to show Run Npm button
You are all done and run your Node.js app