Skip to content

Instantly share code, notes, and snippets.

View cornflourblue's full-sized avatar

Jason Watmore cornflourblue

View GitHub Profile
#!/usr/bin/env bash
echo "
----------------------
PM2
----------------------
"
# install pm2 with npm
sudo npm install -g pm2
#!/usr/bin/env bash
echo "
----------------------
NGINX
----------------------
"
# install nginx
sudo apt-get install -y nginx
#!/usr/bin/env bash
echo "
----------------------
UFW (FIREWALL)
----------------------
"
# allow ssh connections through firewall
sudo ufw allow OpenSSH
#!/usr/bin/env bash
echo "
----------------------
NODE & NPM
----------------------
"
# add nodejs 10 ppa (personal package archive) from nodesource
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
#!/usr/bin/env bash
echo "
----------------------
MONGODB
----------------------
"
# import mongodb 4.0 public gpg key
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4
#!/usr/bin/env bash
echo "
----------------------
NODE & NPM
----------------------
"
# add nodejs 10 ppa (personal package archive) from nodesource
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
echo "
----------------------
MEANIE
----------------------
"
# clone meanie project from github into /opt/meanie folder
sudo git clone https://github.com/cornflourblue/meanie /opt/meanie
# install npm packages for meanie