Get TAJMAC Auth running locally with a Postgres database.
git clone https://github.com/tmsaas/tmsaas.git
cd tmsaas
bun installCopy the example env and fill in your database URL and secrets:
cp apps/tajmac-auth-api/.env.example apps/tajmac-auth-api/.env.localKey variables:
# apps/tajmac-auth-api/.env.local
DATABASE_URL="postgresql://user:pass@localhost:5432/tajmac_auth?schema=tajmac_auth"
DIRECT_URL="postgresql://user:pass@localhost:5432/tajmac_auth"
TAJMAC_AUTH_JWT_SECRET="your-32-char-secret-here"
TAJMAC_AUTH_ENCRYPTION_KEY="64-char-hex-key"
TAJMAC_AUTH_ADMIN_EMAIL="admin@example.com"
TAJMAC_AUTH_ADMIN_PASSWORD="YourSecurePassword123!"Apply the SQL migrations to your Postgres database:
# Apply each migration in order
psql "$DIRECT_URL" -f apps/tajmac-auth-api/prisma/migrations/20260406150000_app_user_multi_type/migration.sql
psql "$DIRECT_URL" -f apps/tajmac-auth-api/prisma/migrations/20260409120000_permission_system/migration.sql
# ... (see prisma/migrations/ for all files)
# Regenerate Prisma client
bunx prisma generate --schema=apps/tajmac-auth-api/prisma/schema.prismabun run devThis starts all apps in parallel:
Open http://localhost:3003/portal/login and sign in with your admin credentials from step 2.
Bootstrap creates the admin user automatically on first start.