Files
hub-monorepo/packages/hub-nodejs/examples/replicate-data-postgres/README.md
Shane da Silva cc2f5a4fae Add syncing/replication example for Postgres (#938)
Provide a working end-to-end example of syncing data from hubs to a
Postgres database.

This should work with no additional dependencies besides what you
install with `yarn install` and Docker.
2023-05-05 09:56:48 -07:00

805 B

Replicate hub data into Postgres

This example shows you how you can quickly start ingesting data from a Farcaster hub into a traditional database like Postgres.

Run on StackBlitz

Open in StackBlitz

Run locally

  1. Clone the repo locally
  2. Navigate to this folder with cd packages/hub-nodejs/examples/replicate-data-postgres
  3. Run yarn install to install dependencies
  4. Run docker compose up -d to start a Postgres instance (install Docker if you do not yet have it)
  5. Run yarn start

To wipe your local data, run docker compose down -v from this directory.