Getting Started With Node – Course

Creating a DigitalOcean Server

Let’s learn how to deploy our Node application. I deploy all my projects on DigitalOcean, in fact, this site is also hosted on DigitalOcean Server.

I highly recommend it to use. If you have never tried DigitalOcean, give it a shot with $10 discount for a first month.

Click here to go to DigitalOcean droplet creation screen.

Continous integration for Node

Choose a $5 plan and create the droplet.

After creating droplet wait for some time, DigitalOcean will send you an email containing the credentials.

Login to your droplet using the following command.

ssh username@dropletip

Provide the password given in the email and you are good to go. Once you are logged in, update the kernel using the following command.

sudo apt-get update

Install Git.

sudo apt-get install git

Install the latest Node on your Server.

curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
sudo apt-get install -y nodejs

Install PM2. More about it in the next lesson.

npm install -g pm2

Our server is ready to host Node applications.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.