All Solutions
Complete list of Apps.
Developer Tools
PaaS, containerization, CI/CD, and more.
Frameworks
Pre-configured application stacks.
Blogs & Forums
Software for content and community.
Databases
SQL and NoSQL data stores.
Monitoring
Monitoring, logging, and more.
Functions
Ship code faster with serverless functions.
Kubernetes
Apps for DigitalOcean Kubernetes.
VERSION 8.10.0
OS Ubuntu 18.04
A lightweight and efficient 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.
| Package | Version | License |
|---|---|---|
| Node.js | 8.10.0 | Custom |
| NPM | 3.5.2 | Artistic License 2.0 |
In addition to the package installation, the One-Click also:
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 3000In 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"}' \
"https://api.digitalocean.com/v2/droplets"
Technical overviews, how-tos, release notes, and support material
DevOps and development guidelines
Run your resources programmatically
Connect, share and learn