Node.js – CRUD operations with MongoDB

By | 25/05/2022

In this post, we will see how to create a Web API with Node.js to run all CRUD operations for an entity called Person, using MongoDB as database. We start creating a Node project called MongoCRUD using the command NPM INIT; it will create a package.json file like this: [PACKAGE.JSON] Then, we add a docker-compose… Read More »

Linux – Commands (Part I)

By | 11/05/2022

MANAGE DIRECTORIES pwd: print name of current/working directory ls: list directory contents mkdir ‘directory name’: make directories mkdir -p ‘directories names’: make parent directories as needed rmdir: remove empty directory rmdir -p ‘name of directories’: remove directory and its ancestors rm -rf: remove a directory not empty MANAGE FILES file: determine file type touch ‘file… Read More »

Node.js – Async/Await

By | 04/05/2022

In this post, we will see how to use Async/Await in Node.js for working in asynchronous mode in the easiest way.It has been introduced from ES2017 to solve the complexities we can find using Promises. For example, if we want to create a method to calculate the square of a number, using Promises, this is… Read More »

Angular – CRUD operations

By | 27/04/2022

In this post, we will see how to create a project in Angular to manage CRUD (Create, Read, Update and Delete) operations for an entity called User; we will use Json Server for the definition of a Web API service. WEB APIWe create a file called UsersDB where we will define a list of User entities: [USERS.DB]… Read More »

Docker – Swarm commands

By | 20/04/2022

In this post, we will see some Swarm commands that could help us in our docker projects.But first of all, what is Docker Swarm?Docker Swarm is an orchestration management tool that runs on Docker applications and it helps us in creating and deploying a cluster of Docker nodes.Swarm is directly integrated into the Docker CLI… Read More »

C# – Redis Cache

By | 06/04/2022

In this post, we will see how to manage Redis Cache in a Web API .NET Core project.But first of all, what is Redis Cache?From Redis web site:“Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache, and message broker. Redis provides data structures such as strings, hashes, lists, sets, sorted sets with range queries, bitmaps, hyperloglogs, geospatial indexes,… Read More »

Category: C#

Swift – Class (Part II)

By | 30/03/2022

Swift – Class (Part I) MULTIPLE INITIALIZERS If we run this code, these will be the results: DEINITIALIZERDeinitialization is a process used to deallocate the memory space before a class instance deallocated. The ‘deinit’ keyword is used to deallocate the memory spaces occupied by the system resources. If we run this code, these will be… Read More »