DEV Community

Vipin Bathaw
Vipin Bathaw

Posted on

πŸ› οΈ Node.js + PostgreSQL Auth Starter with Docker β€” Production-grade Boilerplate

I've just open-sourced a clean, production-ready Node.js starter project with:

  • πŸ” JWT-based Auth (Register, Login, Password Reset)
  • 🐘 PostgreSQL with schema migrations
  • 🐳 Dockerized for dev & prod
  • πŸ’Œ Email Integration (reset password flow)
  • πŸ§ͺ Zod Validation
  • πŸ“œ Pino Logging
  • πŸ›‘οΈ Helmet, CORS, Error handling

πŸš€ Why I built this

Every time I spun up a new backend, I’d end up rebuilding the same auth logic, boilerplate, and config. This project gives me a solid base to build on β€” modular, secure, and ready for deployment.


πŸ”§ Tech Stack

  • Node.js 22
  • Express
  • PostgreSQL 17
  • Docker & Docker Compose
  • JWT
  • Zod
  • Pino
  • Nodemailer

🌍 GitHub Repo

πŸ‘‰ https://github.com/vipinbathaw/node-postgres-auth-boilerplate

Top comments (0)