IntersectMBO / cardano-db-sync

A component that follows the Cardano chain and stores blocks and transactions in PostgreSQL
Apache License 2.0
283 stars 158 forks source link

Add better documentation on setting up postgresql db #1747

Open Cmdv opened 4 days ago

Cmdv commented 4 days ago

It isn't too clear how to setup the postgresql database as it's nested within the documentation:

git clone https://github.com/IntersectMBO/cardano-db-sync
cd cardano-db-sync
PGPASSFILE=config/pgpass-mainnet scripts/postgresql-setup.sh --createdb
git checkout <latest-official-tag> -b tag-<latest-official-tag>

it's line:

PGPASSFILE=config/pgpass-mainnet scripts/postgresql-setup.sh --createdb