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
Node.js Developer’s Center
Review Node.js hosting capabilities, supported versions, deployment methods, package and process managers, domains, scaling, and automation.
Open tutorialSetting 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 tutorialNode.js Versions
Select a supported Node.js release and process-manager tag for a new environment or redeploy an existing container.
Open tutorialCustom Environment Variables
Configure application and stack behaviour through container variables without hard-coding values in the source code.
Open tutorialRuntime and Application Management
Node.js Package Managers
Use npm or Yarn to install, update, remove, and list project dependencies declared in package.json.
Open tutorialNode.js Process Managers
Run applications with npm, PM2, or Forever and configure monitoring, automatic restarts, and startup behaviour.
Open tutorialPM2 Application Management
List, start, stop, restart, and delete Node.js processes and manage several services with an ecosystem configuration.
Open tutorialForever Process Configuration
Keep Node.js applications running continuously and define script, source directory, logging, and watch behaviour in JSON.
Open tutorialDeployment and Automation
Deploy a Node.js Application
Deploy a project from a local archive, direct URL, Git repository, or another supported version-control source.
Open tutorialGit and SVN Auto-Deploy
Connect a repository and configure automatic application updates when new source-code changes are detected.
Open tutorialGit Push Deployment
Push application changes directly to the platform repository and trigger the configured build and deployment workflow.
Open tutorialDeployment Hooks and Scripts
Run preparation, build, migration, or post-deployment operations as part of a repeatable delivery process.
Open tutorialConfiguration and Networking
Node.js Application Server Configuration
Manage application files, startup configuration, environment variables, logs, cron jobs, keys, and other container settings.
Open tutorialNode.js Port Binding
Bind the application to the platform-provided port and configure services that must be excluded from automatic port redirection.
Open tutorialCustom Domain Binding
Bind a domain through CNAME with the Shared Load Balancer or through an A record with a Public IP.
Open tutorialWebSocket Support
Configure and deploy real-time Node.js applications that maintain persistent WebSocket connections.
Open tutorialScaling and Availability
Automatic Vertical Scaling
Allow Node.js containers to consume additional RAM and CPU dynamically up to the configured Cloudlet limit.
Open tutorialManual Horizontal Scaling
Add Node.js instances in stateless or stateful mode and automatically place a load balancer in front of the layer.
Open tutorialAutomatic Horizontal Scaling
Add or remove Node.js nodes according to CPU, RAM, network, or disk-usage triggers.
Open tutorialLoad Balancing and Sticky Sessions
Distribute requests across several Node.js instances and preserve session affinity when the application requires it.
Open tutorialDatabase and Data Services
Connect Node.js to MySQL or MariaDB
Add a managed SQL database, install the required driver, and configure a private database connection.
Open tutorialConnect Node.js to PostgreSQL
Install the PostgreSQL client package and configure connection parameters through application variables.
Open tutorialConnect Node.js to MongoDB
Create a MongoDB node, install the appropriate driver, and connect through the environment’s private network.
Open tutorialConnect Node.js to Redis or Memcached
Add a managed cache node and use it for sessions, queues, caching, or temporary application data.
Open tutorialSecurity and Monitoring
Secure Node.js with SSL
Enable built-in or custom SSL and protect traffic between users, load balancers, and the Node.js application.
Open tutorialContainer Firewall
Restrict inbound and outbound access to application, database, administration, and custom service ports.
Open tutorialNode.js Logs and Monitoring
Review application, process-manager, deployment, and system logs and monitor container resource usage.
Open tutorialEnvironment Isolation
Use private networking, endpoints, Public IP controls, and firewall rules to isolate application components.
Open tutorialRecommended 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.
