DEV Community

Shahriyar Al Mustakim Mitul
Shahriyar Al Mustakim Mitul

Posted on

DevOps Prerequisite (Part 3): Application basics (NodeJs & Python)

NodeJs
Earlier we had this as a website using HTML and CSS:

Image description
But now we have this one:

Image description
JavaScript (Js) made this difference.

Here NodeJs is server site JavaScript environment

Image description
This is how we can install nodeJs in centos:

Image description

Image description

NPM (Node Package Manager)

Image description

So, nodejs and npm is not same but npm manages nodes .

Image description

Image description

Image description

Image description
Modules
Image description

Python

Versions:

Image description
This is how this code works:
Image description

PIP (Python package manager)

Installing something using pip does this:

Image description
Here we have 2 python versions enabled here and we found out that currently pip is enabled on version 2.
So, if we install this flask package, we will create this file under this.

Image description

Image description
Checking paths :
Image description

Importing python packages in to codes:

Image description
Run required all files using a txt file or manually.

Image description

You can manually installed dedicated versions too.

Image description

You can also upgrade and delete them.

Image description

Moreover, these are other ways to run python (.py) files.

Image description

Top comments (0)