How to add a Node.js Web App in Hostinger

Updated 7 days ago

Node.js Web Apps Hosting allows you to deploy modern web applications built with popular JavaScript frameworks like React, Vue.js, and Angular directly to Hostinger with automatic builds and deployments. Yes, Hostinger supports Node.js applications on Business and Cloud hosting plans. This guide will show you how to deploy your Node.js application step-by-step.

Which Hosting Plans Support Node.js Web Applications?

Node.js web applications are available on the following Hostinger hosting plans:

  • Business Web Hosting
  • Cloud Startup
  • Cloud Professional
  • Cloud Enterprise
  • Cloud Enterprise Plus

If you’re currently on a different plan, you can upgrade your hosting plan through hPanel to access Node.js support.

NOTE: VPS and dedicated server plans also support Node.js applications but require manual configuration through the command line interface.

What You’ll Need

  • A Business hosting plan or Cloud hosting plan (Cloud Startup, Cloud Professional, Cloud Enterprise, or Cloud Enterprise Plus)
  • A Node.js app built with a supported framework
  • Either a GitHub repository or compressed project files

Supported Frameworks and Technologies

Your Node.js app must be built with one of these frameworks:

  • Frontend-supported Applications
    • React
    • Vue.js
    • Angular
    • Vite
    • Parcel
    • Preact
    • Next.js
    • Nuxt.js
    • Astro
    • Svelte
  • Backend-supported Applications
    • Next.js
    • Express.js
    • NestJS
    • Nuxt.js
    • Fastify
    • Astro

Supported Node.js versions: 18.x, 20.x, 22.x, 24.x

Deploying from a GitHub Repository

Step 1 – Access the Node.js Web App section

Log in to your Hostinger hPanel, navigate to Websites on the sidebar, and click Add Website:

Step 2 – Select Node.js Web App

Choose  Node.js Apps from the available options.

Step 3 – Choose GitHub Integration

Select Import Git Repository:

Step 4 – Authorize GitHub Access

You’ll be redirected to GitHub. Click Authorize to allow Hostinger to access your repositories:

           

Step 5 – Select Your Repository

Choose the repository containing your Node.js app:

Step 6 – Configure Build Settings

The system will automatically detect your framework and suggest build settings where you can modify them.

Step 7 – Deploy Your Website

Click Deploy to start building your application.

Your Node.js app is now live! 🚀

NOTE: One hosting plan can only be connected to one GitHub account at a time. All Node.js websites within that hosting plan will use the same GitHub account.

Deploying by Uploading Files

Step 1 – Access the Node.js Apps Section

Log in to hPanel, go to Websites, and click Add Website:

Step 2 – Select Front-End Application

Choose Node.js Apps from the options.

Step 3 – Choose File Upload

Select Upload your website files:

Step 4 – Upload Your Project

Upload a compressed file (.zip) containing your Node.js app.

Step 5 – Configure Build Settings

Confirm or edit the auto-detected build settings:

Step 6 – Deploy Your Website

Click Deploy to build and launch your application:

Your website is now ready to use!


Managing Your Node.js App

The Node.js Website Dashboard has features to help you quickly access important information:

1. GitHub Repository Quick Link
If your app is deployed via GitHub, the dashboard now shows a direct link to the connected GitHub repository. Click it to open the repo in a new tab — useful for quickly checking your code, branches, or recent commits without leaving hPanel.

2. Last Deployment Details
The dashboard now displays detailed information about your most recent deployment, including:
• Deployment status (success or failed)
• Timestamp of the last deployment
• A quick link to view the full deployment log
This replaces the need to navigate to the Deployments section just to check the latest build status.

3. Quick Links to Key Features
New quick navigation links have been added to the dashboard so you can jump directly to:
• Deployments
• Environment Variables
• Settings & Redeploy
• File Manager

4. Resource Usage Graphs
The dashboard now includes average resource usage graphs for the most important plan limits, including CPU, RAM, and I/O. These graphs give you a quick visual overview of how your Node.js app is consuming hosting resources — without needing to navigate to the full Resource Usage section.
If any metric approaches the red dotted line (your plan’s limit), consider optimizing your app or upgrading your plan.

File structure after deployment

For Node.js applications that generate back-end build files (e.g., Express.js, Next.js, Nuxt.js, NestJS), build output is stored outside of public_html:

Build files location: /home/{username}/domains/{domain}/nodejs
.htaccess location: /home/{username}/domains/{domain}/public_html/.htaccess — automatically created to handle routing and serve content correctly.

If your application was previously deployed with build files inside public_html, they will be moved automatically on the next build.

NOTE
• This change applies to back-end frameworks only. Front-end-only apps (React, Vue, Angular) are not affected.
• If you encounter a 403 error after redeployment, check that the .htaccess file in public_html is correctly routing to the nodejs directory. Redeploying the application regenerates this file.

Frequently Asked Questions

1. I already have a domain added at Hostinger. How do I deploy Node.js to it?

Currently, Node.js websites must be deployed as a new website. Here’s the process:

  1. If the domain is already added to your hosting plan, make sure to remove the website first before adding the website. Note: Make sure to download backup before removing the website.
  2. Click Add Website and select Frontend web app
  3. Choose your deployment method (GitHub or file upload)
  4. Once deployment is completed, it will be active in the website that you added.

2. How do I remove or undeploy my Node.js website?

Currently, there’s no feature to “Stop” or “Delete” buttons for Node.js deployments. The recommended way to fully take your app offline is to remove the entire website from hPanel. This action will delete all associated deployments and take your app offline.

NOTE: Before you remove your website, it is strongly advised to download backups as this action is not reversible, and all files, databases, emails, and any configuration will be lost.

3. What npm commands can be run?

You don’t need to run npm commands manually via SSH or install NPM separately – it’s already pre-installed by Hostinger.

The npm build commands available to you are visible in the Build settings dropdown during application setup.

That’s it! Now you’ve learned how to deploy a Node.js app in Hostinger using either GitHub integration or direct file upload. If you have any questions or need further assistance, feel free to reach out to our support team via live chat 24/7 – we’re always here to help! 💜