The GlobalSolutions

MEVN Full-Stack On Ubuntu Server

MEVN is a modern full-stack JavaScript framework combining MongoDB, Express.js, Vue.js, and Node.js for building fast, scalable web applications. At GlobalSolutions we have pre-configured this complete MEVN stack on Ubuntu Server, hardened it for secure production use, and made it instantly deployable on AWS EC2.

We have ensured the image is hardened to be secured from all existing vulnerabilities.

Why Subscribe to Our Offering in AWS Marketplace

Accessing Your AMI from AWS Marketplace

To get started with your MEVN stack:

  1. Subscribe: Purchase the MEVN AMI from the AWS Marketplace.
  2. Connect via SSH:
    • In the AWS Console, select your launched instance and click Connect.
    • Choose SSH Client and follow the connection instructions shown.
    • From your local terminal, connect using your .pem key file:
    ssh -i yourpemfile.pem ubuntu@<public-ip-of-your-server>
    • Default user: ubuntu (sudo rights, no password required with key).
For more information, refer to the AWS Instance Connection Guide.

Installation Paths and Versions

The MEVN stack is installed in standard Linux directories for easy access:

Component Software Version Location / Notes
Database MongoDB Community 7.0.x Running on localhost:27017
Data: /var/lib/mongodb
Backend Node.js + Express.js Node 20.x LTS / Express 4.19.x ~/server (sample backend pre-installed)
Frontend Vue.js 3 + Vite Vue 3.4.x ~/client (sample frontend pre-installed)
Web Server Nginx 1.24.x /etc/nginx — configured as reverse proxy
Important: The sample backend in ~/server is pre-configured to connect to the local MongoDB server — no extra setup needed.

Default Configuration

Getting Started with MEVN

All services start automatically on boot. The backend and frontend are fully functional sample applications ready to use.

Quick Commands (after SSH)

# Check services
systemctl status mongod nginx
pm2 list                     # Backend is managed by PM2

# Backend (Express + MongoDB)
cd ~/server
npm start                    # or: pm2 restart server

# Frontend (Vue)
cd ~/client
npm run dev                  # development — http://IP:5173
# For production build:
npm run build
# (Nginx already serves the built files from ~/client/dist)

# Test the full stack
curl http://localhost/api/health   # should return success

Nginx Configuration

Nginx is pre-configured to serve the Vue frontend on port 80 and proxy all /api/* requests to the Express backend on port 3000. To reload after any config changes:

sudo nginx -t && sudo systemctl reload nginx

Making MEVN Accessible from the Web

  1. Allow ports 80 and 443 in your AWS security group.
  2. Point your domain's DNS A record to the instance's public IP.
  3. For HTTPS, install Certbot and configure SSL:
    sudo apt install certbot python3-certbot-nginx
    sudo certbot --nginx
Security Recommendation: Change the MongoDB admin password immediately after first login and restrict port 27017 to localhost only.

AWS Cost Optimizer — CloudInsider

Our other popular offering is the AWS Cost Optimizer aka CloudInsider, available in AWS Marketplace. This service has helped our customers save significantly on AWS and other cloud spending. It is easy to subscribe and you can see the savings in minutes.

▶ Watch Demo Video Subscribe on AWS Marketplace

Support

For any questions or assistance with our AWS Marketplace offering, reach out to us at support@theglobalsolutions.net.