Node.js

Node.js is a fast, lightweight platform (built on Chrome’s JavaScript runtime) used to quickly and easily create scalable network applications.

featured tutorialHow To Create a Node.js Module
In Node.js, a module is a collection of JavaScript functions and objects that can be used by external applications. I...

Stack Abuse • Published on December 2, 2019

featured tutorialHow To Write and Run Your First Program in Node.js
Node.js is a popular open-source runtime environment that can execute JavaScript outside of the browser using the V8 ...

Stack Abuse • Published on August 14, 2019 · Updated on March 18, 2022

Subscribe to Node.js
Get notified when new articles on Node.js are published.
    All
  • 20 Results
    Newest
    All time
    English
    • Question

      Setup Workers Similar to how it's done on Heroku?

      Hi, I’m just migrating my Node JS app from Heroku and I’m struggling to find anything around how to set up workers for queues on the App Platform as we do on Heroku. Ideally, I know I’m to run the worker file on the s...
      No answers yet4 days agoBy Gbadebo BelloDigitalOcean App PlatformDigitalOcean DropletsNode.js
    • Question

      How can I import a database from a node project? I really didnt find anything about it.

      2022-06-13T20:26:47.398754081Z stdout: Error: Cannot find module ‘…/…/…/…/…/dist/config/index.js’2022-06-13T20:26:47.398829183Z stdout: Require stack:2022-06-13T20:26:47.398836892Z stdout: - /tmp/j1hWk7uO/database/pri...
      No answers yet10 days agoBy Henrique CostaDigitalOcean FunctionsNode.js
    • Tutorial

      How To Set Up a GraphQL API Server in Node.js

      In this tutorial, you’ll make an Express API server in Node.js that serves up a GraphQL endpoint. You will also build a GraphQL schema based on the GraphQL type system, including operations such as queries and mutatio...
      10 days agoBy Tania RasciaAPIGraphQLNode.jsDevelopment
    • Question

      Nodejs app platform event loop

      I currently have a few apps deployed on app platform with NodeJS, some are microservices while others are more front-end. My question is, how does app platform handle the event loop and traffic. For example. App 1 is ...
      1 answer12 days agoBy SmallAquamarineFishDigitalOcean App PlatformNode.js
    • Tutorial

      How To Build a Node.js Application with Docker

      Interested in Node.js but not sure where to start with Docker? This tutorial will walk you through the first step: building an image for a Node.js application and creating a container from it. We will also walk you th...
      13 days agoBy Kathleen JuellDockerNode.jsApplicationsUbuntu 18.04
    • Question

      Website will just spin but the content wont display on my website after reboot

      Hello, I recently updated a file in my server but that change did not reflect on my website so I tried once again and saved it but it still didn’t work. But the website was still fully functional at the time. So I tri...
      1 answer14 days agoBy YivsterLinux BasicsNode.jsUbuntu
    • Tutorial

      How To Use Node.js Modules with npm and package.json

      The Node.js Package Manager (npm) is the default and most popular package manager in the Node.js ecosystem, and is primarily used to install and manage external modules in a Node.js project. In this tutorial, you will...
      15 days agoBy Stack AbuseNode.jsDevelopment
    • Tutorial

      How To Use Winston to Log Node.js Applications on Ubuntu 20.04

      Winston is a versatile logging library and a popular logging solution available for Node.js applications. Winston’s features include support for multiple storage options, log levels, log queries, and a built-in profil...
      16 days agoBy Steve Milburn, Mateusz PapiernikApplicationsLoggingNode.jsUbuntu 20.04
    • Question

      How come I can only add one domain to DigitalOcean?

      I have been searching the DigitalOcean community, and it seems as these people have the ability to add more than one domain to DigitalOcean, yet I have to contact the team. Is there a reason for this?
      2 answers16 days agoBy Justin PridgenApplicationsDigitalOcean DropletsDNSNode.js
    • Question

      PM2 error: Error caught while calling pidusage

      I’m running my app with pm2.It seems to be working fine locally. However, when deployed on Digitalocean, I get a bunch of error messages as shown below. Could you please? I couldn’t find anything after hours of resear...
      1 answer17 days agoBy BubblyLightSeaGreenKelpDeploymentNode.js
    • Question

      How to guard a website/app behind VPN network

      Hi, I’m developing a NextJS web app and I want to setup a dev env such that there’s always a up-to-date application reading from the github repo. However, since it’s the dev branch, I want to it only be accessed if th...
      No answers yet17 days agoBy lxhao403ApplicationsNext.jsNode.jsVPN
    • Question

      How to Disable CORS for NodeJS Nginx Ubuntu 20.04 Server

      Hello I am using Nginx with NodeJS on Ubuntu 20.04 to set up a reverse proxy server to host a NodeJS Typescript API using PM2. I have enabled CORS in the Nginx default file as well as in the TS file headers. However w...
      No answers yet17 days agoBy 7ed2db6c4677-4476-b5ab-72f3f2AngularNginxNode.jsUbuntu 20.04
    • Question

      The "url" argument must be of type string. Received undefined

      I am receiving this error during the deployment of my express/node app using App platform. Couldn’t figure what is the problem! config.json: { "development": { "username": "postgres", "password": "10300", "database": ...
      No answers yet23 days agoBy Shadi AliDeploymentNode.js
    • Question

      Best practices for writing App Spec file with multiple environments

      Hello, I’m working on writing a YAML App Spec file for a Node api application. I haven’t come across any examples that show how to handle the scenario of deploying multiple environments, such as a test, staging, and p...
      No answers yet23 days agoBy tylermatteo434ApplicationsCI/CDDeploymentDigitalOcean App PlatformNode.js
    • Question

      413 Request Entity Too Large

      I have Nest.js API which allow user to upload files. Everything is ok on localhost and i can upload big files to DO Spaces. I pushed app to App Platform and now i can’t upload files bigger than 500mb. Any ideas how to...
      No answers yet25 days agoBy Armin HupkaNode.js
    • Question

      digitalocean functions - is it possible using sharp.js for image processing using functions?

      While this is using a library for the image processing I am not sure this is possible.Please your advise
      1 answer30 days agoBy adi38980d0d4d8537081134c00DigitalOcean FunctionsNode.js
    • Question

      Why HEAD requests to DigitalOcean Apps are blocked and return status 500?

      I have server to deal with trello API, I need to setup the web hook using HEAD request to https://my-app-fxzj6.ondigitalocean.app/admin/trello/validate endpoint But achieving status 500 in response. The request is not...
      1 answer1 month agoBy yuyudikAPIDigitalOcean App PlatformNode.js
    • Question

      DigitalOcean droplet upgrade already?

      I have the basic $5 tier that I started a week ago, I’m trying to learn some stuff and practice building an actual app. Currently have docker, maven spring boot, nginx, node, and openvpn for some static IP usage while...
      1 answer1 month agoBy aupperk24DigitalOcean DropletsJavaNginxNode.js
    • Question

      Check provision status of api created database cluster

      We are creating a database cluster from the api. That part works fine, but we need a way to check and be notified once the cluster is done provisioning so we can add the databases to it. We tried making a curl call to...
      1 answer1 month agoBy Garrett WeinbergDatabasesMongoDBNode.js
    • Question

      [PM2][ERROR] Process or Namespace hello not found

      I am going through the initial guide for node.js. This is how it goes in the middle of the tutorial/setup/guide. SSH into your Droplet and modify this script at /var/www/html/hello.js and see the results live by calli...
      Accepted Answer: Better off following this as tutorial. https://marketplace.digitalocean.com/apps/nodejs
      2 answers1 month agoBy ShahrukhAhmedNode.js