🏡 🔍AI 0🛒
×

Install Inbuiltweb 📲

Install Inbuiltweb to add it to your homescreen and make it easier for you to access Inbuiltweb services.

How to host Node.js on Inbuiltweb

Author
By Inbuiltweb Projects
Feature Image

How to Host Node.js on Inbuiltweb

Leveraging unlimited cloud resources, SSH access, and the DirectAdmin "Setup Node.js App" tool for high-performance deployments.

The demand for scalable, low-latency JavaScript applications has never been higher. Inbuiltweb meets this demand by providing a high-performance cloud environment that offers unlimited resources and professional management tools. Whether you are deploying a robust Express.js API, a real-time Socket.io application, or a Next.js frontend, Inbuiltweb’s integration with DirectAdmin makes the process seamless.

This guide will show you how to take advantage of the "Setup Node.js App" interface and SSH access to get your application live in minutes.


Step 1: Locate Your SSH Credentials

For modern developers, terminal access is non-negotiable. Inbuiltweb provides dedicated SSH access to allow for efficient dependency management and environment configuration.

  • Log into your Inbuiltweb User Dashboard.
  • Look for the SSH Details by clicking on My cloud > Manage on the hosting package row.
  • Note down your SSH Host and the specific Secure Shell Port (this is often a custom port for enhanced security).
  • Connect via your terminal: ssh username@your-ssh-host -p your-secure-port

Step 2: Initialize Your App with "Setup Node.js App"

DirectAdmin on Inbuiltweb includes a graphical manager that handles the underlying Passenger or Nginx Unit configuration for you.

  1. Enter your DirectAdmin panel.
  2. Navigate to Extra Features > Setup Node.js App.
  3. Click "Create Application".
  4. Node.js Version: Choose the version that matches your local development environment (e.g., v20.x or v22.x).
  5. Application Root: The directory where your files will live (e.g., /home/user/my-node-app).
  6. Application URL: Select your domain and the path (leave blank to host on the root domain).
  7. Startup File: The entry point of your app (usually app.js, index.js, or server.js).

Step 3: Uploading Code and Installing Packages

With the environment created, it's time to move your code. You can use the DirectAdmin File Manager or, more efficiently, SCP/FTP.

Important: Do not upload your node_modules folder. It is faster and safer to build them on the server.

  1. Once your files (excluding node_modules) are uploaded, return to the "Setup Node.js App" page.
  2. Look for the command at the top that looks like: source /nodevenv/path/to/bin/activate.
  3. Copy and paste that into your SSH terminal. This enters the application's virtual environment.
  4. Run npm install to fetch your dependencies directly onto Inbuiltweb’s high-speed NVMe storage.

Step 4: Handling Ports and Environment Variables

Because Inbuiltweb uses a reverse proxy to serve your Node.js app, you don't need to worry about manually opening ports like 3000 or 8000 in the firewall. The application manager handles the routing automatically.

  • In the Setup Node.js App interface, you can add Environment Variables (like DATABASE_URL or API_KEY) without hardcoding them into your scripts.
  • Set your NODE_ENV to production to ensure maximum performance and reduced logging overhead.

Step 5: Managing the Lifecycle

Inbuiltweb makes it easy to maintain 100% uptime with built-in process management:

  • Restart: Every time you update your code via SSH, click the Restart icon in DirectAdmin to apply the changes.
  • Logs: You can view your stdout and stderr logs directly from the manager to debug any startup crashes.
The Unlimited Advantage: Leveraging Inbuiltweb's cloud infrastructure means your Node.js processes aren't throttled by strict RAM or CPU caps. This is ideal for memory-intensive tasks like PDF generation, image processing, or running complex automation scripts.

Summary

Hosting Node.js on Inbuiltweb combines the power of cloud computing with the simplicity of DirectAdmin. With full SSH access and the dedicated Node.js manager, you have a production-ready environment that scales alongside your traffic. Log in to your dashboard today and take your JavaScript applications to the cloud!

← Back to Blog



×

Default Title

Default body text.