by DigitalOcean

Version 8.10.0

OS Ubuntu 18.04

Create NodeJS Droplet


A lightweight platform ideal for building fast, scalable network applications in Javascript. Similar in design to Ruby's Event Machine or Python's Twisted, and built on Chrome's JavaScript runtime, NodeJS is ideal for data-intensive apps that run across distributed devices.

Software Included

Getting started after deploying NodeJS

In addition to the package installation, the One-Click also:

  • Enables the UFW firewall to allow only SSH (port 22, rate limited), HTTP (port 80), and HTTPS (port 443) access.After you create a Node.js One-Click Droplet, Node.js and NPM will both be installed. This One-Click application is ideal for learning and exploring with Node.js, but isn’t configured for production use. For example, some steps you should take before using Node.js One-Click Droplets in production include:

  • Using PM2, a process manager for Node.js that lets you daemonize applications so they can run in the background as a service.

  • Using a reverse proxy, like Nginx, to give users a way to access the application.

  • Adding SSL to the reverse proxy for additional security.

  • If your application supports it, using multiple Droplets to add redundancy.The guide How To Set Up a Node.js Application for Production on Ubuntu 18.04 explains these steps and more, like using the NodeSource PPA to get the latest LTS releases of Node.js.If you’re not building a production app, you can use the built-in development server to begin learning Node.js. For the example in the linked Node.js documentation, make sure to open port 3000, as this One-Click’s UFW configuration doesn’t allow access to that port by default:

ufw allow 3000

API Creation

In addition to creating a Droplet from the NodeJS 1-Click App via the control panel, you can also use the DigitalOcean API.

As an example, to create a 4GB NodeJS Droplet in the SFO2 region, you can use the following curl command. You’ll need to either save your API access token to an environment variable or substitute it into the command below.

  curl -X POST -H 'Content-Type: application/json' \
       -H 'Authorization: Bearer '$TOKEN'' -d \
      '{"name":"choose_a_name","region":"sfo2","size":"s-2vcpu-4gb","image":"nodejs-18-04"}' \

Support Details

Supported By:DigitalOceanDigitalOcean

Additional Links


Resources for learning and mastering NodeJS