Issue Deploying Node.js Express API Backend on CyberPanel – Need Step-by-Step Deployment Guidance

Hi everyone,

I am trying to deploy a Node.js Express API backend on CyberPanel, but I am running into issues during the deployment process. I have followed some online guides, but the API is either not starting properly or not accessible through the domain.

My backend is built using Node.js with the Express.js framework, and I want to host it on a server managed by CyberPanel.

What I tried so far

  • Uploaded the project files to the server.
  • Installed dependencies using npm install.
  • Tried running the server with node app.js / npm start.
  • Attempted to configure the domain through CyberPanel.

Issues I am facing

  • The API does not stay running after closing the terminal.
  • The domain does not connect to the Node.js application.
  • Unsure how to properly configure reverse proxy or process manager.

What I am looking for

I would really appreciate if someone could explain the complete step-by-step process to deploy a Node.js Express API on CyberPanel, including:

  1. Uploading the Node.js project
  2. Installing Node.js on the server
  3. Running the API using a process manager (like PM2)
  4. Configuring the domain or reverse proxy
  5. Making the API publicly accessible
  6. Best practices for keeping the app running

If anyone has experience deploying Node.js apps on CyberPanel or has an alternative method, please share your guidance.

Thanks in advance for your help! :folded_hands: