Hello Developers 👋. In this article, I will demonstrate how we can set up Database Transaction for multi-layer controller-service-repository pattern Golang projects.
Transactions in Database come into a picture when we need to perform multiple DB operations but still treat them as a single unit. A transaction in a database system must maintain Atomicity, Consistency, Isolation, and Durability − commonly known as ACID properties − in order to ensure accuracy, completeness, and data integrity.
We can implement DB transactions in gorm as follows
Though implementing transactions seems simple, it can be troublesome to set up when the project is…
Hello Developers 👋. In this article, I will demonstrate how easily we can deploy the Next.js Application on Google App Engine within minutes.
Visit my other article if you want to deploy your Next.js Application on Firebase Platform using Cloud Function with Firebase Hosting.
Let’s prepare a simple Next.js application to deploy on the google app Engine.
Hello Developers 👋. Analytics has been a very essential tool for us. It helps us to get a deeper understanding of our customers. But it was not very straightforward to be used with the Nextjs Application when I tried it. So In this article, I will demonstrate how easily Analytics can be integrated with the Nextjs Application.
Let’s start by setting the Firebase project by going to the firebase console.
Hello Developers 👋. In this article, I will demonstrate how we can make use of UUID and Binary(16) datatype in gorm v2 and golang.
What is UUID?
A UUID is just a 128-bit value and it is usually represented in human-readable format as an UTF8 string composed of 5 groups of hexadecimal charac ters separated by dashes.
For more details visit here
Looking at the both pros and…
Hello Developers 👋. Today I will try to demonstrate how the social media preview works and how I implemented on my recent next.js project. Before going any further on implementation, let's create a simple next.js project.
I will name the project as
Before going for the implementation let's first talk about the need for docker briefly.
Deploying static websites like React Applications on the Firebase Platform is very straightforward. But that was not the case with Next.js Projects. This is because Next.js Application requires a server to handle server rendering. So deploying just static HTML is not sufficient. Here in this article, I will demonstrate the deployment of a Next.js project to the firebase platform using cloud Function and Firebase Hosting.
Visit my other article if you want to deploy your Next.js Application on Google App Engine.
Let's prepare a simple Next.js application to deploy on the Firebase.
yarn create next-app
Here I use
React-JSS | Next.js | SSR JSS Implementation
React-JSS is my personal favorite and go-to library for implementing CSS on my React Projects. It is very straightforward to implement it in any React Projects. But that was not the case on Next.js Project. Implementing React-JSS on the Next.js project was not that straightforward and it required some manual work for successful implementation. So In this article, I want to share my experience and the way I implemented it successfully.
In this article, we will implement full Authentication Flow in React using AWS Amplify. There are multiple resources online including official docs but they all lack some bits or have some open issues. I went through some difficult times including reading the package source code to understand some logic while implementing it in my project. So I want to share my experience and some hacks I had to use to implement it successfully.
There are two Amplify UI Components packages available for React.
We will be using the latest package for this article. …
In this article, we will look at some of the concurrency features of Golang. We will build a simple website status checker application to demonstrate those features. We will start with zero concurrency and eventually add concurrency using the features of Golang and benchmark them.
We will be building a simple website status checker application. In this application, we will have a collection (slice) of
websites and we will be running a loop on this given slice of websites. In each iteration, we will be calling
getWebsite function to perform a
get request on that given website.
In this first…
Full Stack Software Engineer