Zone of Development

by Damiano Abballe

React – Router

In this post, we will see how to manage the Routing in React.In a nutshell, we will see how it is possible to move between different parts of an application. First of all, we create a React project called “test router” (using the command npx Create-react-app testrouter) and we modify the file App.cs: [App.css] Then, […]

Read More

Web API – Json Server

In this post, we will see how to create a full fake Rest API for testing, using a Javascript library called Json-Server.Here, it is possible to find the project. [HOW TO INSTALL]First of all, we have to install node.js in our system, because Json Server is available as a NPM package.Then, using the command npm […]

Read More

Web API – Simple Versioning

In this post, we will see how to create a simple versioning of a Web API method, using the Routing attribute.However, before starting, I want to remember that the best way for versioning a method it was describe here: Web API – Versioning We create a Web API project called TestAPI and we add a […]

Read More

Azure – Topic with Service Bus

In this post, we will see how to create and read Topics, using Azure Service Bus.Topics and subscriptions provide a one-to-many form of communication in a publish and subscribe pattern. It’s useful for scaling to large numbers of recipients.For more information, go to the Microsoft Web Site. First of all, we go to Azure Portal and we […]

Read More

TypeScript – Generics and Modules

In this post, we will see how to use Generics and Modules in TypeScript. GENERICS If we run the script, this will be the result: Now, using Generics, we will optimise the code: If we run the script, this will be the result: MODULES In TypeScript, a module is a file containing values, functions, or […]

Read More

TypeScript – Classes and Interfaces

In this post, we will see how to use Classes and Interfaces in TypeScript. CLASSES [Inheritance] [abstract class] INTERFACES

Read More

TypeScript – Variables, Array and Methods

In this post, we will see what TypeScript is and how to configure our system, in order to use it for developing application.From Wikipedia:“TypeScript is a programming language developed and maintained by Microsoft. It is a strict syntactical superset of JavaScript and adds optional static typing to the language. TypeScript is designed for the development of large applications and transcompiles to JavaScript.As TypeScript is a superset of […]

Read More

Design Patterns – Command

From https://en.wikipedia.org/wiki/Command_pattern:“In object-oriented programming, the command pattern is a behavioral design pattern in which an object is used to encapsulate all information needed to perform an action or trigger an event at a later time. This information includes the method name, the object that owns the method and values for the method parameters.”In a nutshell, we can use the Command Pattern to encapsulate […]

Read More

Azure – Queue with Service Bus

In this post, we will see how to send message in a queue using Azure Service Bus.But first of all, what is Azure Service Bus?“Microsoft Azure Service Bus is a fully managed enterprise message broker with message queues and publish-subscribe topics.If two applications want to communicate with each other with less dependency, then Azure service […]

Read More

Web API – Tips

In this post, we will see two tips that could help us in order to create Web API. First of all, we create a simple Web API for managing a list of Users: [User] [UserType] [IUserCore] [UserCore] [UserController] [Startup] We have done and now with Postman, we can verify it works fine it: TIP #1We […]

Read More