Posts

Monolithic vs MicroServices vs Micro Frontends

Image
Monolithic vs MicroServices vs Micro Frontends Overview In this article, We will be looking at different approaches of software development Monolithic MicroServices Micro Frontends Monolithic Monolithic application describes a single-tiered software application in which the user interface and data access code are combined into a single program from a single platform. In simple words, If all the functionalities of a project exists in a single codebase, then that application is known as monolithic application. We all developed monolith applications in our career. To explain about monolithic application in detail, we will take example of travel product as follows: Application UI/ Frontend — responsible for handling HTTP requests and responding with HTML on browser. Business layer — the application’s business logic. This business layer consists of all the travel features like Flight Integration, Hotel Integration, Car Integration and Payment Integration. This makes code dif...

Run And Debug Test Cases Using Jest With Different CLI Options

Welcome file Overview In this article, We will be looking at different ways to run Jest test cases also we will be looking at debugging test case in Jest Jest CLI provides a different options to run unit test cases. We can run Jest test cases as we want. I have described below some of the ways of to run test cases. Run all tests Run tests that are contain in a file Run all tests that are related to changed file Run tests related to path Run tests that match spec name Run only single test Skip test cases Run tests in watch mode Prerequisite You need to have Node installed in order to use npm (node package manager). After installing node we require Jest Package which will be downloaded from NPM package store Jest CLI Options Run all tests By Default Jest runs all tests jest Run tests that are contain in a file Run tests that were specified in file jest testfilename.js jest path/to/testfilename.js Run all tests that are related to changed f...

How To Setup Django Project

Image
How To Setup Django Project Overview Today we will learn how to setup Django project on machine. At the end of this article you will get successful running Django app. Prerequisites: You should have some Python experience and know basic Unix bash commands. If you’ve never used the command line before, please familiarize yourself with the following commands: pwd, cd, rm, and mkdir etc. Steps to create django project: Install python ( Click Here to get pyhton download link) Install virtual wrapper using pip command pip install virtualenvwrapper-win Output of above command is as follows: Create virtual environment to separate current project from other project libraries. It’s common practice to use a virtualenv (virtual environment) for your Python projects in order to create self-contained development environments (also called “sandboxes”). The goal of virtualenv is to prevent different versions of libraries/packages from messing with each other. mkvirtualenv test Ou...

Dockerize an ASP.NET Core Application

Image
Dockerize ASP.NET Core Application Overview In this article we are trying to run an Asp.Net Core Web application on containers using docker. We have an example to demonstrate how to dockerize an ASP.NET Core application in this post. What is ASP.NET Core? ASP.NET Core is a cross-platform, high-performance, open-source framework for building modern, cloud-based, Internet-connected applications. With ASP.NET Core, you can: Build web apps and services, IoT apps, and mobile backends. Use your favorite development tools on Windows, macOS, and Linux. Deploy to the cloud or on-premises. Run on .NET Core or .NET Framework . What is docker? Docker is a tool designed to make it easier to create, deploy, and run applications by using containers. Containers allow a developer to package up an application with all of the parts it needs, such as libraries and other dependencies, and ship it all out as one package. Prerequisites We need an ASP.NET Core and Docker a...