|Node.js||Latest from APT|
|NPM||Latest from APT|
In addition to the package installation, the One-Click also:
22, rate limited), HTTP (port
80), and HTTPS (port
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 that port by default:
ufw allow 3000
For more information on Node.js, you can read the official Node.js documentation.