Installation Prerequisites
Required software and tools needed to run the Next.js Drizzle SaaS Kit locally.
Prerequisites
Required software and tools needed to run the Next.js Drizzle SaaS Kit locally.
Node.js 20.10 or Later
The SaaS Kit requires Node.js version 20.10.0 or later. We recommend using the latest LTS version.
Check if Node.js is installed:
node --versionInstall Node.js:
- Using Official Installer:
- Download from nodejs.org
- Choose the LTS (Long Term Support) version
- Run the installer and follow the prompts
Bun may also work, but we cannot promise full compatibility.
- Using nvm (Recommended for developers):# Install nvm (macOS/Linux)curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash# Install latest LTS Node.jsnvm install --ltsnvm use --lts
Verify installation:
node --versionnpm --versionpnpm Package Manager
This project uses pnpm instead of npm or yarn for better performance and disk space efficiency.
Install pnpm globally:
npm install -g pnpmVerify installation:
pnpm --versionWhy pnpm?
- Faster - Up to 2x faster than npm
- Efficient - Saves disk space with content-addressable storage
- Strict - Better dependency management
- Monorepo support - Excellent for our Turborepo setup
PostgreSQL 16 or Later
You need a running PostgreSQL instance.
We recommend using the provided Docker compose file to run the database and the Mailer testing service.
If you have Docker up and running on your machine, you can run the following command to start the Postgres database and the Mailer testing service:
pnpm run compose:dev:upThis will spin up:
- Postgres: a PostgreSQL 17 instance
- Mailpit: a service for testing emails locally
Git
Required for cloning the repository and version control.
Check if Git is installed:
git --versionDocker Desktop/Orbstack
Useful for running PostgreSQL and other services in containers.
Download:
- macOS/Windows: docker.com/products/docker-desktop
- Linux: Follow Docker Engine installation
On MacOS, we recommend using Orbstack instead of Docker Desktop. It is a lighter alternative that is faster and more efficient.
Download:
- macOS: orbstack.dev
Database Management Tools
To inspect and manage your database:
Drizzle Studio (Recommended - Built-in):
# Run after installation is completepnpm --filter "@kit/database" drizzle:studioEmail Service (Optional for Local Development)
Some emails will be logged to the console for local development. However, we recommend setting up an email testing service like Mailpit to test email features (invitations, password reset).
This is also required for full end-to-end testing of the kit - since it relies on emails being sent and received.
We recommend using Mailpit to test emails locally. This will be run automatically when you start the provided Docker compose file.
Verification Checklist
Before proceeding, verify you have:
- [ ] Node.js 20.x or later installed
- [ ] pnpm installed globally
- [ ] PostgreSQL 16+ running (local, Docker or hosted)
- [ ] Git installed and configured
Next: Clone Repository →