Minimal Express + Nginx + Pm2 Starter Kit
#Files
default: Nginx config file to proxy node app to port 80
myapp: Express project with PM2 config file
#Installation Refer to this video for detailed tutorial
- Install Node on your server, I recommend Digital Ocean's pre-installed droplets
- Install Nginx and place
defaultto/etc/nginx/sites-availabledirectory - Go to
/usr/share/nginx/and use express-generator to start an appexpress myappOR you can just upload themyappdirectory found in this repo then typenpm install - Install pm2
npm install pm2 -gand use the configuration file found in themyappdirectory, start pm2 bypm2 start pm2config.json - Head over to your server and celebrate!