Skip to content

Quick Start

Prerequisites

  • Node.js 20+
  • pnpm
  • PostgreSQL (Homebrew)
  • Docker (for Redis)
  • cloudflared (optional, for tunnel access)

Setup

bash
# Clone and install
cd mtl-rent
pnpm install

# Create database
createdb mtl_rent

# Start Redis (required for BullMQ job queue)
docker compose up -d

# Run migrations and seed
pnpm db:migrate
pnpm db:seed

# Start all services via pm2
pm2 start pnpm --name "mtl-rent" --cwd /path/to/mtl-rent -- dev

This starts all services concurrently:

Demo Accounts

RoleEmailPassword
Landlordlandlord@demo.compassword123
Tenanttenant@demo.compassword123

Useful Commands

bash
pm2 status               # Check service status
pm2 logs mtl-rent        # Watch logs
pm2 restart mtl-rent     # Restart after code changes
pnpm db:generate         # Generate migrations from schema changes
pnpm db:migrate          # Apply migrations
pnpm db:seed             # Seed sample data
pnpm db:studio           # Open Drizzle Studio
docker compose up -d     # Start Redis