How to Set Up Node.js + Prisma + MySQL with TypeScript and Path Aliases (Dev & Prod Ready)
0M.b.patelSeptember 13, 2025
Setting up a scalable Node.js backend can feel overwhelming, especially when combining Prisma, MySQL, and TypeScript. In this guide, we’ll walk through a complete step-by-step setup—from path aliases to production builds—so your project is both developer-friendly and production-ready. No more nodemon hacks, just a clean and modern workflow you can rely on.
tsconfig.json
package.json
# 1. Init project
npm init -y
# 2. Install runtime dependencies (used in production)
npm install express @prisma/client mysql2
# 3. Install dev dependencies (used only in dev/build)