Verify Google Auth Token (Google Sign) Using Python

Verify Google Auth Token (Google Sign) Using Python

Tiempo de lectura: 2 minutos Today we’re going to learn how we can verify a token generated with Google Sign-In from a front-end client by sending it to the back-end. In this case, we’ll be using Python. Returns only the HTML translated, without any addition. Here’s a step-by-step tutorial for validating a Google Sign-In token in Python using the google-auth … Read more

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