DEV Community

Hasnain Makada
Hasnain Makada

Posted on

Building a Robust Digital System for Babulnath Alloys โ€” A Full Case Study (Next.js 16 + Prisma + Supabase)

Hey everyone ๐Ÿ‘‹

Iโ€™m Hasnain Makada, Founder & CEO of CodeSphere Agency, and this is a deep dive into one of our latest engineering-heavy projects:

the complete design and development of babulnathalloys.com, a power-generation spare parts platform.

๐Ÿ”— Live Website: https://babulnathalloys.com

๐Ÿ”— CodeSphere Agency: https://codesphere.agency

๐Ÿ”— Book a Meeting with Us: https://codesphere.agency/meeting

This wasnโ€™t just โ€œanother website build.โ€

It was an end-to-end system designed for scale, speed, and real-world usage by a company handling hundreds of critical diesel engine components every month.

In this case study, Iโ€™ll walk through the challenges, the architecture we put in place, and how we used Next.js 16, Prisma, and Supabase to build a powerful, future-ready solution.


๐Ÿงฉ Understanding the Challenge

Babulnath Alloys supplies spare parts for engines from Wรคrtsilรค, MAN, MAK, Sulzer, and more.

Their operations involve:

  • Managing multiple engine brands and series
  • Handling large catalogs of industrial-grade spare parts
  • Frequent updates of product photos, specs, and categories
  • Responding quickly to enquiries from power plants and marine clients

Their previous digital presence didnโ€™t reflect the structure or reliability of their business.

So our challenge was to build:

  • A clean, modern digital identity
  • A highly structured product ecosystem
  • A scalable backend for continuous expansion
  • A simple yet powerful admin panel for non-technical users

This became the foundation of the system.


๐Ÿ—๏ธ Designing the System Architecture

To ensure long-term scalability, we structured the platform around three core data layers:

1. Brands Layer

(Example: Wรคrtsilรค, MAK, MAN, Sulzerโ€ฆ)

Each brand gets its own dedicated section with its own product series.

2. Engine Series Layer

(Example: Wartsila 20, 26, 32, 38 / MAN L28/32 / MAK M20, M25, M32โ€ฆ)

This creates a drill-down path from brand โ†’ series โ†’ products.

3. Product Categories

(Pistons, liners, valves, fuel pumps, turbocharger parts, bearings, etc.)

This ensures clean organization even when the catalog grows into the thousands.

This structure keeps the UI simple while giving the admin panel room to grow.


โš™๏ธ Tech Stack (Next.js 16 + Prisma + Supabase)

We chose a modern and scalable stack built around performance and flexibility.

๐Ÿ”น Next.js 16

  • Server Actions
  • Optimized Routing
  • Suspense-based loading
  • Built-in security enhancements
  • Perfect for fast, SEO-ready industrial websites

๐Ÿ”น Prisma ORM

  • Clean database models
  • Easy migrations
  • Stable type-safe queries
  • Ideal for large relational structures like brands โ†’ series โ†’ products

๐Ÿ”น Supabase

  • A highly reliable managed Postgres database
  • Built-in authentication
  • Edge functions support
  • Perfect for powering the admin panel and enquiry system

The combination of these tools gave us the flexibility of a custom backend with the speed of a modern full-stack framework.


๐Ÿงฐ Building the Admin Panel

For Babulnath Alloys, the admin panel was non-negotiable.

They needed complete control without touching a single line of code.

We built a secure, simple, and scalable dashboard where they can:

  • Upload & manage product images
  • Add new engine series and categories
  • Edit brand pages
  • Update homepage banners
  • Manage all customer enquiries
  • View structured tables for products, brands & series

Supabase Auth handles authentication, while Prisma manages the relational structure behind the scenes.

The goal was to give them freedom โ€” and we achieved exactly that.


๐ŸŽจ UX & Design Philosophy

Since the engineering industry depends on clarity and trust, we designed with:

  • A blue + yellow industrial palette
  • Bold headings for strong brand presence
  • Clean product cards
  • Mobile-first layouts for field engineers
  • Simple navigation focused on speed
  • High-contrast CTAs

The entire experience is engineered to feel solid, honest, and reliable โ€” just like their business.


๐Ÿš€ Performance & Optimization

We ensured peak performance with techniques like:

  • Next.js 16 caching strategies
  • Image optimization + lazy loading
  • Database indexing with Prisma + Supabase
  • Static generation where possible
  • Server Actions for minimal API requests

The result:

a fast, smooth, and efficient corporate-grade platform.


๐ŸŽฏ Final Outcome

The final system delivered:

  • A professional, modern brand identity
  • A scalable backend with room for hundreds of parts
  • A simple admin panel that anyone can use
  • A fast and secure website built for real-world industrial users
  • A strong foundation for future e-commerce or quotation automation

Babulnath Alloys now has a digital platform that reflects their engineering strength โ€” not just a website, but a long-term asset.


๐Ÿ™Œ Closing Thoughts

As the Founder of CodeSphere Agency, itโ€™s always fulfilling to build systems that create real value.

This project was a reminder of why I love what I do โ€” creating digital foundations for businesses that keep industries running.

If youโ€™d like to build something similar or want a custom system for your company, feel free to connect below:

๐Ÿ”— Book a Meeting: https://codesphere.agency/meeting
๐Ÿ”— Visit CodeSphere Agency: https://codesphere.agency

๐Ÿ”— Project Website: https://babulnathalloys.com

Thanks for reading.

โ€” Hasnain Makada, CodeSphere Agency ๐Ÿš€

Top comments (0)