Posts

Networking concepts - TCP/IP layer model

Image
Understanding the TCP/IP layer model and explain the significance of each layer with real world packet flow. Explanation :- TCP/IP is normally considered to be a 4 layer system. The 4 layers are as follows : Application layer Transport layer Internet/Network layer Network Access layer / network interface layer A pplication layer also has various protocols that applications use to communicate with the second layer, the transport layer. Some of the popular application layer protocols are : HTTP (Hypertext transfer protocol) FTP (File transfer protocol) SMTP (Simple mail transfer protocol) SNMP (Simple network management protocol) etc Transport layer provides backbone to data flow between two hosts. This layer receives data from the application layer . There are many protocols that work at this layer but the two most commonly used protocols at transport layer are TCP and UDP . TCP is used where a reliable connection is required while UDP is used in c...

OOPS, I did not brush up my OOPS concepts, OOPS in Nutshell

What is OOPS? Object Oriented Programming System is the programming technique to write programs based on the real world objects. The states and behaviors of an object are represented as the member variables and methods. In OOPS programming programs are organized around objects and data rather than actions and logic. What are the advantages of OOPS concepts? Major advantages of OOPS programming are; Simplicity : OOPS programming objects model real world objects, so the complexity is reduced and the program structure is clear. Modularity : Each object forms a separate entity whose internal workings are decoupled from other parts of the system. Modifiability : It is easy to make minor changes in the data representation or the procedures in an OO program. Changes inside a class do not affect any other part of a program, since the only public interface that the external world has to a class is through the use of methods. Extensibility : Adding new features or responding to ch...

How to host a React app on Azure

Image
Creating React apps has never been easier with the advent of tools like  create-react-app  or  next  but deploying them is both easy and hard at the same time. The CLI tool can build your React app that can be served as a simple static site since it consists only of a single html file, a single js file and a bunch of static images and style sheets. Building a website Our first step is ensuring we have  create-react-app  installed on our system. To do that, run the following command: npm i -g create-react-app To create a new project, simply invoke the tool with a project name: create-react-app AzureTest This will create a new folder named  AzureTest  that will contain all the files used for developing and building your website. Let’s build the project using the following command: npm run build After it is finished, a new folder named  build  is created which contains everything you need to run the website in production. ...

Deploying Node.js Apps to AWS EC2 with Docker

Image
In this blog, we're going to create a basic Node.js app with Docker, start and configure an EC2 instance, and deploy our app to it. At the end of this blog you'll have your Node app running on AWS, and a better understanding of how to interact with a core AWS service. Prerequisites AWS Account Amazon Web Services  (AWS) is a collection of tools for building applications in the cloud. As EC2 is an AWS service, we'll need to set up an AWS account. AWS has a free tier for a lot of awesome stuff, and EC2 is no exception - you're free to use 750 hours (31 days) of EC2 a month in the free tier for a whole year. Docker Docker  allows us to bundle up our applications into small, easily deployable units that can be run  anywhere  where Docker is installed. This means no more of that 'but it works on my machine!' Node Application Let's make a really simple Node application that responds to a request. To do this, we'll open up a terminal and run: ...

Setup A CI/CD Pipeline For Deploying Your Angular Application To Azure And Bitbucket

Image
This article isabout Angular application's  auto deployment for CI/CD pipelines using Azure app service, azure DevOps, and Bitbucket repository. Please follow the below steps. Create Azure App Service If you are using Azure for the first time and want to explore the same, please check if the  free subscription  is available. If you have not created a resource group and Azure web service, please create one. Then make sure you select ‘.NET Core 3.0’ in the ‘Runtime Stack’ option and web service name (here I have used “angular-auto-deployment”). Once you have filled in the details, click on the “Review and create” button. On the next screen click the “Create” button to see the newly created resource. Click your resource file. The recently created web app service is now available on your list. Please refer to the below image for your reference. Auto Deployment Setup in Azure DevOps Azure DevOps is used to deploy an application to the c...