Getting Started
Get up and running with Postbase in under 5 minutes.
Prerequisites
Before installing Postbase, ensure you have:
- Node.js 20 or later
- pnpm 9 or later (recommended) or npm
- Docker Desktop or Docker Engine
- Git (for version control)
Installation
From npm (Recommended)
# Install globally
npm install -g postbase
# Or with pnpm
pnpm add -g postbaseFrom Source
# Clone the repository
git clone https://github.com/zeroexcore/postbase.git
cd postbase
# Install dependencies
pnpm install
# Build all packages
pnpm build
# Link CLI globally
pnpm --filter @postbase/cli link --globalStart the Daemon
The Postbase daemon manages your local PostgreSQL instance:
postbase startThis will:
- Start the Postbase API server on port 9432
- Pull and start a PostgreSQL Docker container
- Initialize the default database
Create Your First Database
# Create a new database
postbase db create myappVerify Installation
# Check daemon status
postbase status
# List databases
postbase db list
# Get connection details
postbase connect myappYou should see output like:
Database: myapp
Connection Details:
Host: localhost
Port: 5432
Database: myapp
User: postgres
Password: postgres
Connection String:
postgresql://postgres:postgres@localhost:5432/myappOpen the Admin UI
Start the Admin UI development server:
# From the postbase directory
pnpm --filter @postbase/ui devThen open http://localhost:3000 in your browser.
Next Steps
- Create migrations to define your schema
- Explore the Admin UI to manage your database
- Set up cloud deployment for staging/production