Quick Start
What this page covers
Section titled “What this page covers”From zero to first usable Postgram with Docker, health checks, and a first authenticated call.
Core workflow
Section titled “Core workflow”- Start the containers:
docker compose up -d --build- Check service health:
curl http://127.0.0.1:3100/healthExpected JSON includes:
{ "status": "ok", "postgres": "connected"}- Create your first API key:
./bin/pgm-admin key create \ --name local \ --scopes read,write,delete \ --visibility personal,work,shared- Set client auth and store/search one fact:
export PGM_API_URL=http://127.0.0.1:3100export PGM_API_KEY='<plaintext-key>'pgm store "Postgram quick start is working" --type=memory --tags quickstartpgm search "quick start"- If health fails, inspect
docker compose logsfor startup and Postgres boot issues. - The CLI path above uses the wrapper from the repo; standalone users can also run
the
@ivotoby/postgram-clipackage directly after installation.