This is a simple solution for saving time while hosting the MERN app on AWS or any other ubuntu22.04 instance
- Update and upgrade apt
- Install npm
- Install and update node
- Install pm2
- Install pnpm
- Install nginx
- Install MongoDB
- Install Redis
- Yay your server is all set for further hosting configurations
-y
: all yes
git clone https://github.com/remintroy/host-on-server.git
cd host-on-server
sudo ./setup_server.sh
Thats it! Good luck and stay creative