Posts

Showing posts from March, 2026

How I Fixed the Prisma Error

How I Fixed the Prisma "The table public.User does not exist" Error It was one of those moments every developer dreads—you've set up your project, written your Prisma schema, and you're ready to seed the database. You run: npm run seed …and immediately get greeted with this error: PrismaClientKnownRequestError: The table `public.User` does not exist in the current database. I stared at it for longer than I'd like to admit. The User model was clearly defined in my schema.prisma file, so why was Prisma saying the table didn't exist? After a bit of digging, I realized the issue wasn't with my code at all—it was with my understanding of how Prisma works. If you're seeing this error too, here's exactly why it happens and how to fix it. Why This Error Happens One of the biggest misconceptions for developers new to Prisma (myself included) is believing that defining a model in schema.prisma automatically creates the corresponding table in the databas...

Nginx Part 2

  How to Configure Nginx to Serve Uploaded Files (Images & PDFs) in Production Modern web applications often allow users to upload files such as images, PDFs, and documents . While uploading files through the backend is common, serving those files efficiently in production requires proper server configuration. A common and highly recommended approach is to let Nginx serve uploaded files directly , instead of routing those requests through the backend server. This improves performance, reduces load on the API server, and ensures faster content delivery. In this blog, we will walk through a production-ready Nginx configuration used to serve uploaded files securely and efficiently. Why Use Nginx for Serving Uploaded Files? Many developers initially serve uploaded files through their backend framework (Node.js, Django, Laravel, etc.). While this works, it is not ideal for production environments. When a backend server handles file downloads, it consumes CPU and memory resources th...

What is Nginx ???

  How Deploying with Nginx Changed My Journey as a Full Stack Developer 🚀 A Story Every Tech Student Should Read I still remember the day my React app worked perfectly. The UI was clean. The backend API was responding. The database was connected. Everything worked… on localhost . At that moment, I felt like a full stack developer. But a small voice in my head kept asking: “If this works only on your laptop, are you really production-ready?” That question pushed me into the world of deployment — and that’s where real growth began. 🌱 The Comfort Zone: Local Development Like most tech students, my journey started with: React frontend Node.js + Express backend Database connection using PostgreSQL Running everything with npm start It felt productive. But deep down, I knew something was missing. Real companies don’t deploy apps using npm start . They use servers. They use Linux. They use reverse proxies. They use SSL. And that’s when I decided to l...