Skip to content

Introduction

Express + Prisma Boilerplate is a production-ready template for building scalable REST APIs with modern Node.js technologies.

What You'll Learn

This documentation covers everything you need to build and deploy production APIs:

  • Getting Started - Installation, configuration, and project structure
  • Core Features - Authentication, database, caching, and background jobs
  • Production - Deployment, monitoring, and testing

Tech Stack

Backend

Node.jsExpressTypeScriptPrismaZod

Infrastructure

PostgreSQLRedisDockerNGINX

Monitoring

PrometheusBullMQ

Features

  • TypeScript - Full type safety across the application
  • Prisma ORM - Type-safe database access with PostgreSQL
  • JWT Authentication - Access/refresh token rotation with Redis sessions
  • Redis Caching - Built-in caching layer and response caching middleware
  • Background Jobs - BullMQ-powered queues with worker process
  • Prometheus Metrics - Production monitoring at /metrics
  • Docker Ready - Docker Compose with PostgreSQL, Redis, NGINX

Architecture

┌─────────────┐     ┌─────────────┐     ┌─────────────┐
│   NGINX     │────▶│  Express    │────▶│  PostgreSQL │
│   Proxy     │     │    API      │     │   Database  │
└─────────────┘     └──────┬──────┘     └─────────────┘

                   ┌──────▼──────┐
                   │    Redis    │
                   │  (Cache +   │
                   │   Sessions) │
                   └──────┬──────┘

                   ┌──────▼──────┐
                   │   BullMQ    │
                   │   Workers   │
                   └─────────────┘

Documentation Map

For New Users

Start here to get up and running:

  1. Quick Start - Get running in 5 minutes
  2. Project Structure - Understand the codebase
  3. Configuration - Configure your environment

For Developers

Learn the core features:

For Production

Deploy with confidence:

ComponentTechnology
RuntimeNode.js 18+
FrameworkExpress 5
LanguageTypeScript
ORMPrisma
DatabasePostgreSQL
CacheRedis (ioredis)
QueueBullMQ
ValidationZod
Metricsprom-client

Getting Help

Released under the MIT License.