Skip to content

Search is only available in production builds. Try building and previewing the site to test it out locally.

Quick Start

From zero to first usable Postgram with Docker, health checks, and a first authenticated call.

  1. Start the containers:
Terminal window
docker compose up -d --build
  1. Check service health:
Terminal window
curl http://127.0.0.1:3100/health

Expected JSON includes:

{
"status": "ok",
"postgres": "connected"
}
  1. Create your first API key:
Terminal window
./bin/pgm-admin key create \
--name local \
--scopes read,write,delete \
--visibility personal,work,shared
  1. Set client auth and store/search one fact:
Terminal window
export PGM_API_URL=http://127.0.0.1:3100
export PGM_API_KEY='<plaintext-key>'
pgm store "Postgram quick start is working" --type=memory --tags quickstart
pgm search "quick start"
  • If health fails, inspect docker compose logs for startup and Postgres boot issues.
  • The CLI path above uses the wrapper from the repo; standalone users can also run the @ivotoby/postgram-cli package directly after installation.