api3-discord-bot

Go back Discord Bot

Install global packages on EC2

Nodejs is used by the Discord bot along with other packages.

Install nvm, Nodejs, npm

See AWS the doc here. Check the nvm GitHub repo for the latest version. Update the curl command that installs nvm with the latest version if needed (e.g. v0.40.1 > v0.40.3).

Install git

If Git is not installed, install it using the package manager for Amazon Linux (e.g., sudo yum install git -y).

Install pm2

pm2 is used for process management of multiple Nodejs instances. This allows multiple Nodejs instance processes to live beyond the closure of an SSH client connection. pm2 is a Nodejs centric package.

npm install -g pm2