SwiftUI – Custom Botton style

By | 21/07/2020

In this post, we will see how to create a custom button style in Swift. First of all, we create a swift project and we add, in the file ContentView, this code: [CONTENTVIEW.SWIFT] Obviously the application is very easy, but it isn’t the principal goal of the the post. If we run the application, this… Read More »

Unit Test – Unit Test in Swift

By | 17/07/2020

In this post, we will see how to create a Unit Test in Swift, in order to test a function called IsNumberEven used to check if a number in input is either even or odd. First of all, we create a Swift file called Core, where we will define the function IsNumberEven: [CORE.SWIFT] Obviously function… Read More »

Angular – Environment Variables

By | 10/07/2020

In this post, we will see how to use environment variables in Angular. We will use the same Angular project created for the post How to Dockerize an Angular application and we will add a call at the Web API Service that I have deployed on Docker.hub: First of all, we run the Docker image… Read More »

React – How to render a list

By | 07/07/2020

In this post, we will see how to render a list of objects in React. First of all, we create a function component called listuser, where we will define a list of users: [LISTUSER.JS] Then, using the Javascript method map, we will display the list: Finally, we add the component listuser in App.js: If we… Read More »

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 »