Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

📝 added guide how to setup rubick from dump #77

Merged
merged 2 commits into from
May 12, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,16 @@ rm -rf src/types
npm run typegen
```

## Self-hosted indexer
## Setting up the project for resolvers

It is recommended to use a readily set up indexer if available. It takes some time for a freshly started indexer
to get in sync with chain and catch the events.
In case you just want to extend resolvers you don't index the whole project and just import the postgres database (last data 11.05.2022):

Have a look at `./indexer/docker-compose.yml` for an example of how you can set up a self-hosted version.
1. [Download the data](https://storage.googleapis.com/bright-meridian-316511-db-export/rubick.sql)
2. `docker-compose up db`
3. `docker exec -it rubick-db-1 psql -U postgres -d postgres -c "CREATE DATABASE rubick;"`
4. `docker exec -i rubick-db-1 psql -U postgres -d squid < rubick.sql`

⚠️ In case the command does not work, check if the container is called `rubick-db-1`.

## Misc

Expand Down