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
- We update the software constantly to the latest version to address security issues.
- Customers can kick-start their core work right away with our pre-packaged AMIs.
- Production-ready application stacks.
Accessing Your AMI from AWS Marketplace
To get started with your MEVN stack:
- Subscribe: Purchase the MEVN AMI from the AWS Marketplace.
- 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
.pemkey file:
ssh -i yourpemfile.pem ubuntu@<public-ip-of-your-server>
- Default user: ubuntu (sudo rights, no password required with key).
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:27017Data: /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 |
~/server is pre-configured to connect to the local MongoDB server — no extra setup needed.
Default Configuration
- MongoDB: No root password set by default — connect with
mongoand create an admin user immediately. - Backend port: 3000 (Express API)
- Frontend dev port: 5173 (Vue dev server)
- Nginx: Serves production frontend on port 80 and proxies
/apirequests to the backend on port 3000. - Environment:
~/server/.envalready points tomongodb://localhost:27017/mevn_db.
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
- Allow ports 80 and 443 in your AWS security group.
- Point your domain's DNS A record to the instance's public IP.
- For HTTPS, install Certbot and configure SSL:
sudo apt install certbot python3-certbot-nginx sudo certbot --nginx
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.