When working backend development you usually work with languages such as Node JS, Php, Python, Ruby, Java, etc. You have to set up the development environment for these languages. With the help of this article you setup a backend development environment on your Ubuntu 18.04 machine.
Node JS
Node.js is an open-source server-side framework built on Javascript. Node.js runs on service which is basically Javascript.
Let's install Node JS
sudo apt install nodejs
When the installation completes you can confirm the version of Node by:
node -vor
node --version
NPM: To install packages you have to install node package manager NPM:
sudo apt install npm
YARN: To install yarn on Ubuntu 18.04 you need to configure the repo.
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.listNow install yarn
sudo apt update && sudo apt install yarnTo confirm installation you can check the version of yarn
yarn --version
Python
Python is a server-side scripting language best known for Machine learning, Data learning, and Automation. Let's install Python 3 in this section. Run these commands in order to install Python 3 in your Ubuntu 18.04
sudo apt-get update
sudo apt-get install python3
To confirm the installation you can run
python3 -V
Since you are using python3, we will install Python 3 pip, Let's do that
sudo apt install -y python3-pip
To confirm the installation of Pip3, you can write
sudo python3-pip --version
Php
Php is a server-side language that is popular for its speed and popularity. Let's install PHP on Ubuntu 18.04,
sudo apt install php libapache2-mod-php
The above command will install the latest version of PHP compatible with apache.
To confirm the installation of Php you need to run:
php --version
This will return something like.
PHP 7.2.24-0ubuntu0.18.04.6 (cli) (built: May 26 2020 13:09:11) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies with Zend OPcache v7.2.24-0ubuntu0.18.04.6, Copyright (c) 1999-2018, by Zend Technologies.
Ruby
Ruby is another high-level language created by a Japanese developer named Yukihiro Matz. To install Ruby you need to run:
sudo apt update
sudo apt install ruby-full
To confirm the installation for Ruby you need to run:
sudo ruby --version