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 or similar cloud platforms.

Accessing Your MEVN Instance

After launching the Ubuntu Server image from AWS Marketplace / your provider:

  1. Connect via SSH: ssh ubuntu@your-public-ip (use your .pem key)
  2. Default user: ubuntu (sudo rights, no password required with key)

Installed Software & Paths

ComponentSoftwareVersionInstallation Path / Notes
DatabaseMongoDB Community7.0.xRunning on localhost:27017
Data: /var/lib/mongodb
BackendNode.js + Express.jsNode 20.x LTS
Express 4.19.x
~/server (sample backend app pre-installed)
FrontendVue.js 3 + ViteVue 3.4.x~/client (sample frontend app pre-installed)
Web ServerNginx1.24.x/etc/nginx
Configured as reverse proxy
Important: The sample backend in ~/server is pre-configured to seamlessly connect to the local MongoDB server (no extra setup needed).

Default Configuration & Credentials

Finding Your Instance Details

Getting Started with Your Sample MEVN Apps

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

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)
# or for production:
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 (already set up)

Nginx is pre-configured to:

To reload: sudo nginx -t && sudo systemctl reload nginx

Making Your MEVN App Publicly Accessible

  1. Allow ports 80 & 443 in your cloud security group
  2. Point your domain A record to the public IP
  3. For HTTPS: sudo apt install certbot python3-certbot-nginx then sudo certbot --nginx
Security Recommendation: Change MongoDB admin password immediately and restrict port 27017 to localhost only.

Support

For any questions or customizations with this MEVN Ubuntu offering, please contact support@yourcompany.com.