Setup a Digital Ocean account

Sign up for a Digital Ocean account and head to droplets.

Configure a Droplet

Click “Create Droplet”. The default configuration is fine, but you can change the size of the droplet to your liking.

Configure Authentication

Select “SSH Key” and create a new SSH key by following the instructions.

Create Droplet

Click “Create Droplet” and wait for the droplet to be created!

Connect to your Droplet via SSH

Open up a new terminal and connect to your droplet via SSH. Use the IP address of the droplet, found in the Droplets dashboard.

ssh -i ~/.ssh/id_rsa root@<droplet-ip-address>

Type yes when prompted, and you’re in!

Install PM2

PM2 is a process manager that helps you manage and keep your node running. For more information on PM2 commands and usage, refer to the PM2 Documentation.

sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt update
sudo apt install nodejs npm
sudo npm install -g pm2

Install Python & Venv

sudo apt install python3.12
sudo apt install python3.12-venv

Create Virtual Environment

python3.12 -m venv venv

Activate Virtual Environment

source venv/bin/activate