Modern software engineering depends heavily on delivering updates quickly without compromising on stability. CI/CD pipelines play a key role in achieving this by automating checks, reducing errors, and keeping teams aligned. This article digs deeper into how CI/CD improves quality and productivity across organisations. The Problem: Manual Processes Slow Down Development Before CI/CD, development teams… Continue reading How CI/CD Pipelines Improve Software Quality and Developer Productivity
Author: Rohit Adithiya
A Beginner-Friendly Guide to CI/CD Pipelines: How Modern Teams Deliver Faster
In today’s fast-moving software world, speed and reliability matter more than ever. Companies can no longer afford long release cycles where developers wait days or weeks to deliver a single feature. This is where CI/CD pipelines come in. Continuous Integration (CI) and Continuous Deployment/Delivery (CD) allow teams to build, test, and release code automatically with… Continue reading A Beginner-Friendly Guide to CI/CD Pipelines: How Modern Teams Deliver Faster
Creating an Indexed Article System with Next.js and Firebase
Firestore model (recommended) Collection: articles Document id: index (string or numeric converted to string) Document fields: { “index”: 1, // numeric index (also used as doc id: “1”) “title”: “How to Build with Next.js”, “slug”: “how-to-build-with-nextjs”, “author”: “Rohit Kumar”, “body”: “<p>Article markdown or HTML content…</p>”, “excerpt”: “Short summary for listing”, “tags”: [“nextjs”, “react”, “firebase”], “coverImage”:… Continue reading Creating an Indexed Article System with Next.js and Firebase
How to Use Subcollections in Firebase Firestore and Create Multiple Child Items
When working with Firebase Firestore, you’ll often need to store related data in a structured way. For example, an Order document might contain multiple Items, or a Post might have many Comments. Firestore provides a powerful way to handle this scenario using subcollections. In this article, we’ll cover: 🔹 What subcollections are in Firestore 🔹… Continue reading How to Use Subcollections in Firebase Firestore and Create Multiple Child Items
Csv import the users in the firebase.
To import bulk user data into Firebase Authentication via a CSV file, you can’t directly upload CSV files through the Firebase Console — instead, you’ll need to: Convert CSV to JSON format expected by Firebase. Use the Firebase Admin SDK (Node.js recommended) or Firebase CLI to import users. Step-by-step Guide: Bulk Import Users from CSV… Continue reading Csv import the users in the firebase.
Populating Relations in Hooks in next js payload CMS
Sometimes, you may need to populate related data in hooks before saving or fetching a document. Example: Before Change Hook import { Payload } from ‘payload’; const populateProfile = async ({ req, data }) => { const profile = await req.payload.findByID({ collection: ‘profiles’, id: data.profile, }); return { …data, profileData: profile }; }; Using Access… Continue reading Populating Relations in Hooks in next js payload CMS
Querying Related Data in the payload
When fetching data via Payload’s REST or GraphQL API, related fields can be populated using depth in the query. REST API Example: GET /api/users?depth=2 This ensures related fields are expanded up to two levels deep. GraphQL Example: query { Users { docs { name profile { bio avatar } } } }
Handling Multiple Relations in payload CMS
You can specify multiple relations within a single field by setting relationTo as an array: { name: ‘relatedItems’, type: ‘relationship’, relationTo: [‘products’, ‘categories’], hasMany: true, } This allows referencing multiple collections (products and categories) in a single field.
Defining Relations in Collections
Relations in Payload CMS allow one collection to reference another, creating links between different sets of data. The most common types of relationships include: One-to-One (A single reference to another document) One-to-Many (A field can reference multiple documents) Many-to-Many (Multiple documents can reference multiple other documents) To define a relation, use the relationship field type… Continue reading Defining Relations in Collections
Implementing Server-Side Rendering (SSR) with Payload CMS in Next.js
To fetch Payload CMS data at build time (SSG) and at request time (SSR) in Next.js. Steps: Set Up a Payload CMS Collection payload.config.ts: ts Copy Edit const Articles: CollectionConfig = { slug: ‘articles’, fields: [ { name: ‘title’, type: ‘text’, required: true, }, { name: ‘content’, type: ‘richText’, }, ], }; export default Articles;… Continue reading Implementing Server-Side Rendering (SSR) with Payload CMS in Next.js