Docker – Web API and Sql Server

By | 30/06/2020

In this post, we will see how to connect a Docker Web API Solution with a SQL Server Database on premises and on Cloud. DB ON PREMISES From our system, we open SSMS, we create a DB called TestDocker1 and then we run some sql scripts, in order to create a table called TabUser and… Read More »

React – How to manage onClick event

By | 26/06/2020

In this post, we will see how to manage onClick event in React. FUNCTION COMPONENT: We create a function component called FunctionEvent: [FUNCTIONEVENT.JS] Then, we add this component into App.js: [APP.JS] If we run the application, this will be the result: CLASS COMPONENT: We create a Class component called ClassEvent [CLASSEVENT.JS] Then, we add this… Read More »

SwiftUI – TabView

By | 19/06/2020

In this post, we will see how to create a TabView, used to show two different Pages. We start, creating two SwiftUI views called Page1 and Page2: [PAGE1.SWIFT] [Page2.swift] Then, we will add another SwiftUI view called TabMenu where, we will define the TabView: [TABMENU.SWIFT] We have done and, if we run the application, this… Read More »

React – prevState

By | 16/06/2020

In this post, we will see what prevState is and how to use it.From React docs: “React may batch multiple setState() calls into a single update for performance. Because this.props and this.state may be updated asynchronously, you should not rely on their values for calculating the next state.To fix it, use a second form of setState() that accepts a… Read More »

React – State

By | 12/06/2020

In this post, we will see how to use State in a Class Component.But, what is State?State is a special object of the Class Component, which allows components to create and manage their own data. It is where we store property values that belongs to the component and, when it changes, the component re-renders.It is… Read More »

CSS – How to inheritance a class

By | 09/06/2020

In this post, we will see how to inheritance a class in a css file. We start creating a web page, called Home.html, where we will put a div: [HOME.HTML] Now, if we want to add another div, with a different width and different font-size, we will write a HTML code like that: If we… Read More »

Category: CSS

Azure – How to create an Azure SQL Database

By | 05/06/2020

In this post, we will see how to create an Azure SQL Database using the Azure portal. We open a browser, go to https://portal.azure.com, select “Create a resource” and we choose “SQL Database”: The first things we have to set are:Resource GroupDatabase NameServer Then, we have to set some Networking parameters: Finally, we review everything… Read More »

Angular – How to Dockerize an Angular application

By | 02/06/2020

In this post, we will see how to Dockerize an Angular application and how to deploy it in Docker Hub. ANGULAR PROJECT:We start creating a new Angular project called “AngularDockerUI” with three components: ng new AngularDockerUIng g c share/menung g c share/homepageng g c pages/pagelist Finally, we install Bootstrap using the command npm install bootstrap… Read More »