Node.js Tutorials

Node.js Tutorials

Explore Node.js hosting tutorials for selecting runtime versions, managing packages and processes, deploying applications, configuring environments, connecting databases, scaling services, assigning domains, securing traffic, and automating application delivery.

Getting Started

Overview

Node.js Developer’s Center

Review Node.js hosting capabilities, supported versions, deployment methods, package and process managers, domains, scaling, and automation.

Open tutorial
Environment

Setting Up a Node.js Environment

Create a topology with Node.js application servers, load balancing, databases, cache nodes, Public IPs, and suitable Cloudlet limits.

Open tutorial
Runtime

Node.js Versions

Select a supported Node.js release and process-manager tag for a new environment or redeploy an existing container.

Open tutorial
Variables

Custom Environment Variables

Configure application and stack behaviour through container variables without hard-coding values in the source code.

Open tutorial

Runtime and Application Management

Packages

Node.js Package Managers

Use npm or Yarn to install, update, remove, and list project dependencies declared in package.json.

Open tutorial
Processes

Node.js Process Managers

Run applications with npm, PM2, or Forever and configure monitoring, automatic restarts, and startup behaviour.

Open tutorial
PM2

PM2 Application Management

List, start, stop, restart, and delete Node.js processes and manage several services with an ecosystem configuration.

Open tutorial
Forever

Forever Process Configuration

Keep Node.js applications running continuously and define script, source directory, logging, and watch behaviour in JSON.

Open tutorial

Deployment and Automation

Deployment

Deploy a Node.js Application

Deploy a project from a local archive, direct URL, Git repository, or another supported version-control source.

Open tutorial
VCS

Git and SVN Auto-Deploy

Connect a repository and configure automatic application updates when new source-code changes are detected.

Open tutorial
Git Push

Git Push Deployment

Push application changes directly to the platform repository and trigger the configured build and deployment workflow.

Open tutorial
CI/CD

Deployment Hooks and Scripts

Run preparation, build, migration, or post-deployment operations as part of a repeatable delivery process.

Open tutorial

Configuration and Networking

Configuration

Node.js Application Server Configuration

Manage application files, startup configuration, environment variables, logs, cron jobs, keys, and other container settings.

Open tutorial
Ports

Node.js Port Binding

Bind the application to the platform-provided port and configure services that must be excluded from automatic port redirection.

Open tutorial
Domains

Custom Domain Binding

Bind a domain through CNAME with the Shared Load Balancer or through an A record with a Public IP.

Open tutorial
WebSockets

WebSocket Support

Configure and deploy real-time Node.js applications that maintain persistent WebSocket connections.

Open tutorial

Scaling and Availability

Vertical Scaling

Automatic Vertical Scaling

Allow Node.js containers to consume additional RAM and CPU dynamically up to the configured Cloudlet limit.

Open tutorial
Horizontal Scaling

Manual Horizontal Scaling

Add Node.js instances in stateless or stateful mode and automatically place a load balancer in front of the layer.

Open tutorial
Auto Scaling

Automatic Horizontal Scaling

Add or remove Node.js nodes according to CPU, RAM, network, or disk-usage triggers.

Open tutorial
Traffic

Load Balancing and Sticky Sessions

Distribute requests across several Node.js instances and preserve session affinity when the application requires it.

Open tutorial

Database and Data Services

MySQL

Connect Node.js to MySQL or MariaDB

Add a managed SQL database, install the required driver, and configure a private database connection.

Open tutorial
PostgreSQL

Connect Node.js to PostgreSQL

Install the PostgreSQL client package and configure connection parameters through application variables.

Open tutorial
MongoDB

Connect Node.js to MongoDB

Create a MongoDB node, install the appropriate driver, and connect through the environment’s private network.

Open tutorial
Cache

Connect Node.js to Redis or Memcached

Add a managed cache node and use it for sessions, queues, caching, or temporary application data.

Open tutorial

Security and Monitoring

SSL

Secure Node.js with SSL

Enable built-in or custom SSL and protect traffic between users, load balancers, and the Node.js application.

Open tutorial
Firewall

Container Firewall

Restrict inbound and outbound access to application, database, administration, and custom service ports.

Open tutorial
Monitoring

Node.js Logs and Monitoring

Review application, process-manager, deployment, and system logs and monitor container resource usage.

Open tutorial
Isolation

Environment Isolation

Use private networking, endpoints, Public IP controls, and firewall rules to isolate application components.

Open tutorial

Recommended learning path

Start with Node.js versions and environment creation, continue with package and process managers, deploy the application, and then add databases, domains, scaling, SSL, monitoring, and automation.

Important Notes

  • Available Node.js versions and process-manager tags can vary by hosting provider.
  • Confirm application and dependency compatibility before changing the Node.js version.
  • Use shared or external storage for application data that must remain consistent across scaled nodes.
  • Review session handling before enabling horizontal scaling.
  • Replace the placeholder # links with the final URLs of your BWS documentation pages.