Skip to content

Deployment Overview of MEAN on Server

Prerequisites and Basic Requirements

The application requires a Linux environment (Ubuntu or Debian) with the following prerequisites installed:

  • Operating System: Ubuntu or Debian.

  • Privileges: Root or sudo access is required for package installation and service management.

  • Network/Ports: The system must have outbound internet access to fetch packages from NodeSource and NPM registries.

Application Installation Process

The application is installed using a multi-step process that configures the runtime environment, database, and global CLI tools.

  1. System Preparation: The package manager repositories are updated, and essential utilities including curl, gnupg, and software-properties-common are installed.

  2. Node.js Runtime Installation:

  3. On Ubuntu: Node.js version 22.x is installed via the NodeSource repository.

  4. On Debian: Node.js version 18.x is installed via the NodeSource repository.

  5. Database Setup: PostgreSQL is installed and configured to run as a background service, ensuring it starts automatically upon system boot.

  6. Global CLI Tools Installation: The following tools are installed globally via npm:

  7. @angular/cli (Angular Command Line Interface)

  8. express-generator (Express framework scaffolding tool)

  9. Database Driver Installation: The pg module is installed to allow the Node.js application to communicate with the PostgreSQL database.

Databases

The application utilizes a local PostgreSQL instance for data storage and management.

Feature Details
Engine PostgreSQL
Connection Method Localhost via pg driver
Service Status Enabled (starts on boot)

Application Update Instructions

To update the application environment, ensure all system packages are current and re-run the installation of global dependencies:

  1. Update the system package list: sudo apt-get update.

  2. Upgrade installed packages: sudo apt-get upgrade.

  3. Re-install or update global CLI tools if necessary to match the application requirements.

question_mark
Is there anything I can help you with?
question_mark
AI Assistant ×