Adding a Theme in React to Change Element Colors and Text Font.

Adding a Theme in React to Change Element Colors and Text Font.

Tiempo de lectura: < 1 minuto For this tutorial, we will use Material UI. First, we install the necessary dependencies: npm install @mui/material @emotion/react @emotion/styled Now, let’s create our theme by creating a file named theme.tsx (I use TypeScript, you can create it in JavaScript) In my case, I have set Roboto as the fontFamily and the colors to Teal. Now, … Read more

Software Engineering: Monolithic vs Microservices Architecture. Which One Should You Choose?

Software Engineering: Monolithic vs Microservices Architecture. Which One Should You Choose?

Tiempo de lectura: 2 minutos In the world of software development, choosing the right architecture is crucial for the success of a project. Two widely used approaches are monolithic architecture and microservices architecture. Each has its own characteristics, advantages, and challenges, and the choice between them depends on various factors. Monolithic Architecture: A Single Comprehensive Block Monolithic architecture is a … Read more

Send Push Notifications to Google Firebase Cloud Messaging API (V1) Using Python

Send Push Notifications to Google Firebase Cloud Messaging API (V1) Using Python

Tiempo de lectura: 2 minutos Today we are going to learn how we can send a message to the Firebase Cloud Messaging endpoint using Python. (https://firebase.google.com/docs/cloud-messaging/http-server-ref?hl=en-419) For this, we need the Google endpoint: POST https://fcm.googleapis.com/v1/projects/myproject-b5ae1/messages:send And previously we have to generate a token in our application, for this we go to Firebase, select our project, and click on Project Settings: … Read more

Integrating Unit Tests with Jest in React

Integrating Unit Tests with Jest in React

Tiempo de lectura: 2 minutos Today we are going to learn how we can integrate tests with Jest that allow us to test the React components created. The first thing we have to do is install Jest: npm install –save-dev jest Install testing-library/jest-dom: npm install –save-dev @testing-library/jest-dom We installed ts-jest npm install –save-dev ts-jest We installed: npm install –save-dev babel-jest … Read more

Migrating WordPress from HTTP to HTTPS (SSL/TLS)

Migrating WordPress from HTTP to HTTPS (SSL/TLS)

Tiempo de lectura: 3 minutos The first thing we are going to do is to install this plugin that will allow us to replace internal links from HTTP to HTTPS: Search for search & replace (https://es.wordpress.org/plugins/search-and-replace/) And install it. Another one I recommend installing is this: (https://es.wordpress.org/plugins/better-search-replace/) Now let’s go to Tools > Search & Replace I recommend making a … Read more