Posts for Deven

Software Developer
Deven
Deven wrote

Build a CRUD Rest API with Fastify.

In this tutorial, we’ll learn how to build a CRUD Rest API with Fastify. Fastify is a high-performance HTTP framework for Node.js, focusing on speed and inspired by ExpressJS and HapiJS. Prerequisites: Step 1: Set up the file structure Open a terminal and execute the following commands to initialize a new project: This creates a […]

April 30, 2023 in Fastify & Tutorials
Deven
Deven wrote

MVC architectural pattern with ExpressJS for Beginners

This tutorial focuses on the MVC architectural pattern, including its implementation in a project using ExpressJS. Software architecture is like a blueprint for building software, defining the structure and communication of components. This is similar to building a physical structure from a prototype. There are different architectural patterns like client-server, peer-to-peer, and MVC. This tutorial […]

April 27, 2023 in Node & Tutorials
Deven
Deven wrote

Building a RESTful Flask CRUD API

In this guide, we will learn how to build a Restful Flask CRUD API. Most beginners prefer to use Flask because it is easy to learn and use as its syntax is more python friendly. Flask is more flexible, and it doesn’t enforce dependencies. It allows developers to structure their projects the way they want. […]

April 27, 2023 in Flask & Tutorials
Deven
Deven wrote

Building a Golang CRUD Application using PostgreSQL

In this tutorial, I will walk you through the process of building a Golang CRUD (Create, Read, Update, Delete) application using the gorilla/mux library for APIs and PostgreSQL for data storage. This beginner-friendly tutorial is perfect for those new to Golang or SQL, as we will cover the essential topics. Let’s dive in! Prerequisites Before […]

April 26, 2023 in Go & Tutorials
Deven
Deven wrote

Resolving: local variable referenced before assignment

As a Python developer, it’s essential to understand how to handle variable scope and avoid the common “local variable referenced before assignment” error. This error occurs when you attempt to use a variable before it’s been assigned a value. Here’s what the error looks like: In this guide, we’ll explore the reasons behind this error […]

April 26, 2023 in Dev Bytes & Python
Deven
Deven wrote

Resolving: The “metadata-generation-failed” Error in Python

When installing Python packages using the pip install command, you might come across the “metadata-generation-failed” error. This error occurs because the setup.py file in the package cannot be executed properly. This guide will provide a detailed overview of the possible causes and their solutions. The main reasons for this error include: 1. Upgrade Your Build […]

April 26, 2023 in Dev Bytes & Python
Deven
Deven wrote

Resolving: ModuleNotFoundError: No module named ‘pycocotools’

You might come across the following error when working with Python: This error occurs when Python is unable to locate the pycocotools module in your current Python environment. In this tutorial, we will discuss how to install the pycocotools library and resolve this error. There are several ways to resolve this error, and we’ll begin […]

April 25, 2023 in Dev Bytes & Python
Deven
Deven wrote

Resolving – error:0308010C:digital envelope routines::unsupported

As a Node.js developer who has experienced this issue, I’ve conducted research and found out that a breaking change in Node.js version 17, which defaults to OpenSSL version 3, causes error:0308010C:digital envelope routines::unsupported error. In this article, I will share my understanding of why this error occurs and various ways to fix it. The reason […]

April 25, 2023 in Dev Bytes & Node
Deven
Deven wrote

Cannot import name ‘force_text’ from django.utils.encoding

As a Django developer, I’ve come across the following error while developing web applications with Python: Upon further investigation, it turns out that the force_text function has been deprecated and removed in Django version 4. The force_text function was an alias for force_str and was retained in Django 3 to support Python 2. With the […]

April 25, 2023 in Dev Bytes & Django
Deven
Deven wrote

​​Resolving: Node is not recognized error

In this article, you will learn about how to fix node is not recognized. If you ever faced a problem like “node is not recognized as an internal or external command” after installing node.js. Don’t worry! It’s a common problem and its solution is very easy. You may face this kind of unwanted situation because […]

April 24, 2023 in Dev Bytes & Node
Deven
Deven wrote

Resolving: unexpected eof while parsing error in Python

In this article, you will learn how to solve unexpected eof while parsing error in Python. When this error occurs, it means that Python has encountered an end of file (EOF) when it was not expecting one. This often happens when there is a syntax error in your code, such as a missing bracket or […]

April 24, 2023 in Dev Bytes & Python
Deven
Deven wrote

Displaying and Manipulating Dynamic List Data in React.js

Dev Bytes: Learn how to efficiently render and manipulate dynamic list data in React.js applications by following this step-by-step guide. React.js is a popular JavaScript library for building user interfaces, particularly for web applications. It enables developers to create reusable, interactive, and stateful UI components. One of the common tasks in React.js applications is to […]

April 23, 2023 in React & Tutorials
Deven
Deven wrote

How to manage roles and permissions in Laravel

For a web application, it’s necessary to have and manage many different roles and permissions. They help us to define what are the responsibilities and capabilities of each of our employees. It’s important to define our user roles and assign responsibilities to each of our employees because they make our website more secure. In this […]

April 22, 2023 in Laravel & Tutorials