Tutorials for this topic
Install Node.js LTS and npm on Ubuntu or Debian using the NodeSource repository, verify versions, and follow basic practices for running JavaScript applications.
Install PostgreSQL on Ubuntu/Debian, create a database user and database, local access, and basic hardening for your applications.