How to setup back-end environment in Ubuntu 18.04

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 -v 
or
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.list
Now install yarn
sudo apt update && sudo apt install yarn
To 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
how-to-setup-backend-environment-in-ubuntu-1804

How to setup back-end environment in Ubuntu 18.04

When working back end development you usually work with languages such as, Node JS, Php, Python, Ruby, Java etc. You have to seutp the development environment for these languages. With the help of this article you setup backend development environment on your Ubuntu 18.04 machine.

how-to-create-zip-files-by-using-jszip-library

How to Create Zip files by using JSZIP library

JS Zip is an open-source and free library to easily create Zip files without any pain which provides an easy and good API. You can use this library in your app to build easily Zip files. You can use this library when you want your users to download their data, like their images, their videos, their documents, and their other data.

a-brief-introduction-to-microservices-apps

A brief Introduction to Microservices Apps

Microservice apps, or simply microservices, is a method of developing software systems that tries on building single-function modules with interfaces and operations. The trend has grown popular in recent years as Enterprises look to become more Agile and move towards DevOps and continuous testing.

Contributors

Wapgee
Contributor