MEAN logo
Developer Stacks

MEAN Stack Hosting on Your Own VPS

MongoDB, Express, Angular and Node.js on a server you control.

Size a server for MEAN

Every stop is a real configuration you can deploy. Priced per 30 days, billed by the hour, exclusive of 18% GST.

4 vCPU
8 GB
40 GB
5 TB

What MEAN is

The MEAN stack is MongoDB, Express, Angular and Node.js — JavaScript from the database driver to the browser. One language across the whole application is the argument for it, and it is a real one: shared validation logic, shared types, and no context switch between server and client work.

Angular is a full framework rather than a library: routing, forms, HTTP and dependency injection all ship with it, and it is written in TypeScript throughout. That makes it opinionated and consistent, and it makes the build heavier than the alternatives.

For hosting, the part that catches people out is the build rather than the runtime. A production Angular build type-checks and bundles the entire front end, and it is far more memory-hungry than serving the result afterwards. Servers that run the application comfortably can still fail to build it — which is why building on the server needs headroom, or a build artefact deployed from elsewhere.

Why run MEAN on a VPS

Enough memory to run a production build on the server, not only to serve it.

MongoDB on the same machine, so queries do not cross a network.

Root access for Node versions and native module compilation.

A long-running Node process under a supervisor, restarted on failure and on deploy.

MEAN features

Node.js with a version manager, so the runtime is pinned

MongoDB locally with authentication enabled

Express API behind NGINX handling TLS

Angular build served as static files by NGINX

PM2 or systemd keeping the Node process alive

Free TLS with renewal

Recommended server

A starting point for MEAN, not a hard floor — size it on the sliders.

Memory8 GB — driven by the production build more than by serving
CPU4 vCPU; builds and MongoDB both use it
Storage40 GB; node_modules and MongoDB data are the growing parts
Operating systemUbuntu 22.04 LTS

How deployment works

Node.js, MongoDB and NGINX are installed together. The Express process runs under PM2 or systemd so it survives restarts, NGINX terminates TLS and serves the built Angular assets directly, and MongoDB is bound to localhost with authentication enabled — an internet-reachable MongoDB without auth is among the most reliably breached configurations there is.

It is your server. MEAN is installed directly on your VPS or VDS, not inside a container we manage. You get root over SSH, you can install anything alongside it, change its configuration, or remove it entirely. We do not hold a key to it.

What people run it for

Full-stack JavaScript applications

One language across API, client and database access.

REST and GraphQL APIs

Express services with MongoDB behind them.

Real-time features

WebSockets on a persistent Node process, which serverless makes awkward.

Moving off a PaaS

The same stack at server prices rather than per-instance pricing.

MEAN hosting questions

A VPS running MongoDB, Express, Angular and Node.js, with root access to all four.

Deploy MEAN on your own server

Root access, your choice of size, and no container between you and the application.