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.
-
System Preparation: The package manager repositories are updated, and essential utilities including
curl,gnupg, andsoftware-properties-commonare installed. -
Node.js Runtime Installation:
-
On Ubuntu: Node.js version 22.x is installed via the NodeSource repository.
-
On Debian: Node.js version 18.x is installed via the NodeSource repository.
-
Database Setup: PostgreSQL is installed and configured to run as a background service, ensuring it starts automatically upon system boot.
-
Global CLI Tools Installation: The following tools are installed globally via
npm: -
@angular/cli(Angular Command Line Interface) -
express-generator(Express framework scaffolding tool) -
Database Driver Installation: The
pgmodule 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:
-
Update the system package list:
sudo apt-get update. -
Upgrade installed packages:
sudo apt-get upgrade. -
Re-install or update global CLI tools if necessary to match the application requirements.