Creating menus in android applications

Creating menu content This specific menu is displayed in an assembly Where are the menus? For each menu, it is necessary to define the items that are in it. It is defined in XML format in a file located in a specific folder named “menu” (located in the “res” folder). We generate this file by … Read more

Installing Vue.js

[vc_row][vc_column width=”1/1″][vc_tta_tabs style=”modern” shape=”square” active_section=”1″ css_animation=”bounceIn”][vc_tta_section title=”Tab 1″ tab_id=”1751323679048-d65b517e-3267″][vc_column_text]I am text block. Click edit button to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo. 1111111111111111[/vc_column_text][/vc_tta_section][vc_tta_section title=”Tab 2″ tab_id=”1751323679052-b473328f-02fa”][vc_column_text]I am text block. Click edit button to change this text. Lorem ipsum dolor sit … Read more

Dependency injection in Nest.js

What is Dependency Injection (DI)? Dependency Injection (DI) is a software design pattern that allows separation of object dependencies and their initialization. In the context of Nest.js, DI enables easier dependency management, reducing class interdependence and increasing application modularity and testability. DI is a software pattern that is not only related to nest.js or node.js … Read more

Data validation in NestJS using “Pipe”

Introduction to Nest.js “Pipe” Pipes in NestJS are special components used to transform and validate data before it reaches the controller or controller methods. Pipes are useful when we want to ensure that the data we receive in API requests meets certain conditions or is transformed in a specific way. Nest.js comes with built-in pipes … Read more

Nest.js controllers

What are controllers? Controllers in Nest.js are classic TypeScript classes that are decorated with the @Controller() decorator. In such classes, methods corresponding to HTTP operations such as GET, POST, PUT, DELETE are defined, where each method within the controller is decorated with a corresponding HTTP decorator. Example of a simple controller:

In this example, … Read more

Introduction to Nest.js

What is Nest.js? Nest.js is a Node.js framework for creating server-side applications. It uses modular architecture, which means that the application is divided into modules, where each module groups related functionality, so that new functionalities can be easily added without disrupting the existing parts of the application. Nest.js uses the TypeScript language (although JavaScript can … Read more

Environment variables = ENV variable

What are environment variables Environment Variables (Environment Variables) are used in various places in software development and IT infrastructure, such as code: operating systems (“PATH” variable that defines the directories in which the operating system searches for executable files), software development (variables for storing configuration parameters such as API keys, databases, URLs..), security (for storing … Read more

Node starter project (TypeScript + Docker)

Project skeleton We will assume that the project will have several smaller projects, ie. container, e.g. a part for microservices, a part for working with the database… It is good to create subfolders in the root of the project for each smaller project, e.g.:

Creating package.json First we will create a package.json file in … Read more

Docker: Running Apps Everywhere

Introduction to the Docker world What is Docker? Docker is a platform that allows developers to easily create, deploy and run applications inside containers. What are containers? Containers can be understood as lightweight virtual machines, but they are much faster and less demanding than them, they contain everything needed to run an application: code, libraries … Read more

Node.js Streams

What are Streams in Node.js? Streams allows for more efficient processing of large amounts of data, and can be viewed as a “river” of data. Streams “saves” memory because by processing data in chunks, working with large amounts of data does not occupy a large amount of memory at once. Streams processes data quickly, because … Read more