## docs website
https://github.com/hyperledger-labs/blockchain-explorer

docker pull ghcr.io/hyperledger-labs/explorer:latest
docker pull ghcr.io/hyperledger-labs/explorer-db:latest


## postgres config
# Use postgres/example user/password credentials

/usr/lib/postgresql/10/bin/pg_ctl -D /var/lib/postgresql/10/main -l logfile start

Status: Downloaded newer image for adminer:latest
Creating db_adminer_1 ... done
Creating db_db_1      ... done
Attaching to db_adminer_1, db_db_1
adminer_1  | [Sun Jan  7 14:20:28 2024] PHP 7.4.33 Development Server (http://[::]:8080) started
db_1       | The files belonging to this database system will be owned by user "postgres".
db_1       | This user must also own the server process.
db_1       |
db_1       | The database cluster will be initialized with locale "en_US.utf8".
db_1       | The default database encoding has accordingly been set to "UTF8".
db_1       | The default text search configuration will be set to "english".
db_1       |
db_1       | Data page checksums are disabled.
db_1       |
db_1       | fixing permissions on existing directory /var/lib/postgresql/data ... ok
db_1       | creating subdirectories ... ok
db_1       | selecting dynamic shared memory implementation ... posix
db_1       | selecting default max_connections ... 100
db_1       | selecting default shared_buffers ... 128MB
db_1       | selecting default time zone ... Etc/UTC
db_1       | creating configuration files ... ok
db_1       | running bootstrap script ... ok
db_1       | performing post-bootstrap initialization ... ok
db_1       | syncing data to disk ... ok
db_1       |
db_1       |
db_1       | Success. You can now start the database server using:
db_1       |
db_1       |     pg_ctl -D /var/lib/postgresql/data -l logfile start
db_1       |
db_1       | initdb: warning: enabling "trust" authentication for local connections
db_1       | initdb: hint: You can change this by editing pg_hba.conf or using the option -A, or --auth-local and --auth-host, the next time you run initdb.
db_1       | waiting for server to start....2024-01-07 14:20:29.482 UTC [48] LOG:  starting PostgreSQL 16.1 (Debian 16.1-1.pgdg120+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit
db_1       | 2024-01-07 14:20:29.485 UTC [48] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
db_1       | 2024-01-07 14:20:29.493 UTC [51] LOG:  database system was shut down at 2024-01-07 14:20:29 UTC
db_1       | 2024-01-07 14:20:29.499 UTC [48] LOG:  database system is ready to accept connections
db_1       |  done
db_1       | server started
db_1       |
db_1       | /usr/local/bin/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/*
db_1       |
db_1       | waiting for server to shut down....2024-01-07 14:20:29.597 UTC [48] LOG:  received fast shutdown request
db_1       | 2024-01-07 14:20:29.602 UTC [48] LOG:  aborting any active transactions
db_1       | 2024-01-07 14:20:29.603 UTC [48] LOG:  background worker "logical replication launcher" (PID 54) exited with exit code 1
db_1       | 2024-01-07 14:20:29.603 UTC [49] LOG:  shutting down
db_1       | 2024-01-07 14:20:29.605 UTC [49] LOG:  checkpoint starting: shutdown immediate
db_1       | 2024-01-07 14:20:29.621 UTC [49] LOG:  checkpoint complete: wrote 3 buffers (0.0%); 0 WAL file(s) added, 0 removed, 0 recycled; write=0.005 s, sync=0.002 s, total=0.018 s; sync files=2, longest=0.001 s, average=0.001 s; distance=0 kB, estimate=0 kB; lsn=0/14EAA70, redo lsn=0/14EAA70
db_1       | 2024-01-07 14:20:29.627 UTC [48] LOG:  database system is shut down
db_1       |  done
db_1       | server stopped
db_1       |
db_1       | PostgreSQL init process complete; ready for start up.
db_1       |
db_1       | 2024-01-07 14:20:29.723 UTC [1] LOG:  starting PostgreSQL 16.1 (Debian 16.1-1.pgdg120+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit
db_1       | 2024-01-07 14:20:29.723 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
db_1       | 2024-01-07 14:20:29.723 UTC [1] LOG:  listening on IPv6 address "::", port 5432
db_1       | 2024-01-07 14:20:29.728 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
db_1       | 2024-01-07 14:20:29.736 UTC [62] LOG:  database system was shut down at 2024-01-07 14:20:29 UTC
db_1       | 2024-01-07 14:20:29.744 UTC [1] LOG:  database system is ready to accept connections
db_1       | 2024-01-07 14:25:29.746 UTC [60] LOG:  checkpoint starting: time
db_1       | 2024-01-07 14:25:33.887 UTC [60] LOG:  checkpoint complete: wrote 44 buffers (0.3%); 0 WAL file(s) added, 0 removed, 0 recycled; write=4.119 s, sync=0.009 s, total=4.142 s; sync files=11, longest=0.005 s, average=0.001 s; distance=260 kB, estimate=260 kB; lsn=0/152BE90, redo lsn=0/152BE58


From the root of the repository:
./main.sh clean
./main.sh install

$ cd blockchain-explorer
$ npm install
$ cd client/
$ npm install
$ npm run build


DISCOVERY_AS_LOCALHOST=false npm start
