Kanba supports both Supabase (default) and PostgreSQL as database backends.
# Use Supabase (default)
DATABASE_PROVIDER=supabase
# Use PostgreSQL
DATABASE_PROVIDER=postgresql
DATABASE_URL=postgresql://username:password@localhost:5432/kanba_db-
Start PostgreSQL:
npm run postgres:start # Docker # or install PostgreSQL locally
-
Configure environment:
cp env.example .env.local # Set DATABASE_PROVIDER=postgresql and DATABASE_URL -
Setup database:
npm run postgres:setup
-
Start development:
npm run dev
Full PostgreSQL guide: POSTGRES_SETUP.md
- Seamless switching between Supabase and PostgreSQL
- Same API for both databases
- Docker support for easy local development
- Prisma ORM for PostgreSQL
- All existing features work with both databases
- Team collaboration and Stripe integration supported
- Local development without external dependencies
- Self-hosted deployments with full control
- Better performance for complex queries
- Advanced features like full-text search
- Cost-effective for high-traffic applications