Back to articles
Technology Insight

Deploying Amplication on Cloud VPS: Automating Enterprise-Grade NodeJS Backend Generation from Data Models

June 2, 2026

Introduction: The Enterprise Backend Bottleneck

In the modern software development lifecycle, velocity and architectural consistency are paramount. Enterprise applications demand robust, scalable, and secure backends, yet engineering teams frequently spend hundreds of hours writing repetitive boilerplate code. Setting up Object-Relational Mapping (ORM) layers, configuring Authentication/Authorization (AuthN/AuthZ), implementing Role-Based Access Control (RBAC), and establishing Data Transfer Objects (DTOs) are critical but highly repetitive tasks.

Amplication addresses this operational bottleneck by introducing an open-source, low-code platform that focuses explicitly on developer productivity. Unlike traditional 'black-box' low-code solutions, Amplication generates 100% human-readable, high-quality TypeScript code built on standard industry frameworks: NestJS, Prisma, PostgreSQL, and GraphQL/REST APIs. While Amplication provides a managed cloud service, large enterprises with strict data compliance, regulatory constraints, or bespoke DevOps pipelines often require hosting the engine internally. This technical guide outlines the comprehensive process of deploying Amplication on an independent Cloud VPS to automate enterprise-grade NodeJS backend generation directly from your relational data models.

1. Why Run Amplication on Private Cloud VPS?

Deploying Amplication on your own infrastructure offers several strategic advantages for enterprise operations:

  • Absolute Data Sovereignty: Your data models, schema definitions, and generated intellectual property never leave your secure network boundaries. This is vital for compliance with HIPAA, GDPR, or local banking regulations.
  • Cost Optimization: Eliminates seat-based SaaS licensing fees by leveraging self-hosted, open-source infrastructure capable of scaling vertically or horizontally based on project volume.
  • Custom DevOps Integration: Enables seamless integration with private Git repositories (GitLab Self-Hosted, GitHub Enterprise) and internal CI/CD tooling (Jenkins, Argonaut, or GitLab Runner).

2. Prerequisites and Environment Baseline

Before initiating the deployment, ensure your Cloud VPS meets the following minimum technical specifications to handle the continuous compilation and generation tasks:

  • Operating System: Ubuntu 22.04 LTS or Ubuntu 24.04 LTS (Clean installation recommended).
  • Hardware Profile: Minimum 4 vCPUs, 8 GB RAM, and 50 GB NVMe Storage.
  • Network Requirements: A fully qualified domain name (FQDN) pointed to your VPS static public IP, with ports 80, 443, and 22 open.
  • Software Dependencies: Docker Engine v24.0+, Docker Compose v2.20+, and Node.js v18+ (for local CLI debugging).

3. Step-by-Step Architecture Deployment

Step 3.1: Server Initialization and Security Hardening

Connect to your VPS via SSH and update the core system packages to ensure a secure foundation:

sudo apt update && sudo apt upgrade -y

Next, install the requisite containerized environment dependencies:

sudo apt install curl git docker.io docker-compose-plugin -y
sudo systemctl enable --now docker

Step 3.2: Cloning and Configuring the Amplication Stack

Amplication provides an official open-source repository designed for self-hosting. Clone the repository and navigate into the deployment directory:

git clone https://github.com/amplication/amplication.git
cd amplication

Create your production environmental configuration file by copying the template:

cp .env.template .env

Edit the .env file using a text editor such as nano or vim. You must modify key enterprise parameters to secure the installation:

  • AMPLICATION_HOST: Set this to your domain name (e.g., https://amplication.yourcompany.com).
  • JWT_SECRET: Generate a long, cryptographically secure random string to handle internal microservice authentication.
  • GITHUB_CLIENT_ID and GITHUB_CLIENT_SECRET: Configure these if you intend to link Amplication to an enterprise GitHub OAuth application for user authentication and automated code pushes.

Step 3.3: Launching Services via Docker Compose

Amplication relies on a microservices architecture consisting of a server instance, a client UI, a database migration runner, a task runner, and a PostgreSQL instance. Launch the entire cluster in detached mode:

sudo docker compose up -d

Verify that all internal containers are running successfully without errors:

sudo docker compose ps

Step 3.4: Configuring Reverse Proxy and SSL Certificates

To enforce enterprise security, protect the web interfaces using Nginx and Let's Encrypt SSL certificates. Install Nginx and Certbot:

sudo apt install nginx certbot python3-certbot-nginx -y

Configure an Nginx server block to forward incoming port 443 traffic to the internal Amplication client container running on port 3000. Once configured, execute Certbot to obtain and automate the renewal of an SSL certificate:

sudo certbot --nginx -d amplication.yourcompany.com

4. Operating the Platform: From Data Model to Code

With Amplication successfully hosted on your Cloud VPS, you can access the localized dashboard by pointing your browser to your secure domain. The workflow to generate an enterprise NodeJS backend follows a highly structured, automated path:

1. Define Entities and Fields

Utilize the visual database designer to create your database entities (e.g., Customer, Order, Inventory). Add fields with strict data typing, nullability constraints, and relational mappings (One-to-Many, Many-to-Many).

2. Configure Advanced Permissions

Amplication natively embeds Passport.js and custom guards. For each entity, developers can visually specify access levels per role (e.g., Admin, Manager, Public) across individual CRUD operations (Create, Read, Update, Delete).

3. Build and Generate

Clicking the 'Build' trigger prompts the Amplication source-code generator engine to execute. It analyzes your schema and generates an optimal, modular project structure. The output complies completely with NestJS design patterns, creating distinct modules, controllers, resolvers, services, and Prisma schemas.

5. Evaluating the Generated Enterprise Architecture

The code output produced on your private instance matches professional, human-written architectural code standards. It explicitly avoids hardcoded dependencies, offering clean extension patterns:

  • Prisma ORM Integration: Fully typed queries that minimize runtime syntax exceptions and provide native migration scripts.
  • Dual API Layer: Every build auto-generates both documented REST endpoints (via OpenAPI/Swagger) and a comprehensive GraphQL API schema out of the box.
  • Extensibility: Custom business logic can be introduced cleanly. By utilizing standard NestJS patterns, developers can append custom controllers or override auto-generated services without breaking future schema syncs.

Conclusion

Deploying Amplication on a self-managed Cloud VPS represents an optimal middle ground between low-code agility and professional enterprise engineering standards. By automating the foundational boilerplate of NestJS and Prisma backends within your own secure network infrastructure, your engineering team can mitigate technical debt, minimize configuration errors, and pivot human focus away from infrastructure setup and toward core business logic differentiation.

Deploying Amplication on Cloud VPS: Automating Enterprise-Grade NodeJS Backend Generation from Data Models | DPTCloud