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
- Log into your DigitalOcean dashboard
- Click Create → Droplets
- Choose Ubuntu 24.04 LTS
- Select the Basic plan — $6/month to start
- Choose a datacenter region closest to your users
- Add your SSH key or set a root password
- 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