How to Deploy Your First App on DigitalOcean in 2026

A step-by-step guide to deploying your first web app on DigitalOcean in 2026 — from creating a Droplet to going live with your project.

How to Deploy Your First App on DigitalOcean in 2026

DigitalOcean is one of the most developer-friendly cloud platforms available. In this guide, we’ll walk through deploying your first app from scratch.

👉 Create your DigitalOcean account — $200 free credit


What You’ll Need

  • A DigitalOcean account
  • A simple Node.js or static app ready to deploy
  • Basic terminal knowledge

Step 1 — Create a Droplet

  1. Log into your DigitalOcean dashboard
  2. Click Create → Droplets
  3. Choose Ubuntu 24.04 LTS
  4. Select the Basic plan — $6/month to start
  5. Choose a datacenter region closest to your users
  6. Add your SSH key or set a root password
  7. Click Create Droplet

Your Droplet will be live in about 60 seconds.


Step 2 — Connect via SSH

ssh root@YOUR_DROPLET_IP

Step 3 — Install Node.js

curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
sudo apt-get install -y nodejs
node -v

Step 4 — Upload Your App

git clone https://github.com/yourusername/your-app.git
cd your-app
npm install
npm start

Step 5 — Keep It Running with PM2

npm install -g pm2
pm2 start index.js
pm2 startup
pm2 save

Step 6 — Point Your Domain

Go to Networking → Domains, add your domain and point the A record to your Droplet IP.

👉 Start with DigitalOcean — $200 free credit for new users