|
|
@ -3,14 +3,14 @@ |
|
|
|
For now this integration is not production ready. It made only for local usage only ! |
|
|
|
For now this integration is not production ready. It made only for local usage only ! |
|
|
|
|
|
|
|
|
|
|
|
## How to use ? |
|
|
|
## How to use ? |
|
|
|
First of all blockscout requires `PostgreSQL` server for working. |
|
|
|
First of all, blockscout requires `PostgreSQL` server for working. |
|
|
|
It will be provided by starting script (new docker image will be created named `postgres`) |
|
|
|
It will be provided by starting script (new docker image will be created named `postgres`) |
|
|
|
|
|
|
|
|
|
|
|
**Starting command** |
|
|
|
**Starting command** |
|
|
|
`make start` - will set everything up and start blockscout in container. |
|
|
|
`make start` - will set everything up and start blockscout in container. |
|
|
|
To connect it to your local environment you will have to configure it using [env variables](#env-variables) |
|
|
|
To connect it to your local environment you will have to configure it using [env variables](#env-variables) |
|
|
|
|
|
|
|
|
|
|
|
Exmaple connecting to local `ganache` instance running on port `2000` on Mac/Windows: |
|
|
|
Example connecting to local `ganache` instance running on port `2000` on Mac/Windows: |
|
|
|
```bash |
|
|
|
```bash |
|
|
|
COIN=DAI \ |
|
|
|
COIN=DAI \ |
|
|
|
ETHEREUM_JSONRPC_VARIANT=ganache \ |
|
|
|
ETHEREUM_JSONRPC_VARIANT=ganache \ |
|
|
@ -27,15 +27,15 @@ On Linux docker is starting using `--network=host` and all services should be av |
|
|
|
|
|
|
|
|
|
|
|
### Migrations |
|
|
|
### Migrations |
|
|
|
|
|
|
|
|
|
|
|
By default `Makefile` will do migrations for you on `PostgreSQL` creation. |
|
|
|
By default, `Makefile` will do migrations for you on `PostgreSQL` creation. |
|
|
|
But you could run migrations manualy using `make migrate` command. |
|
|
|
But you could run migrations manually using `make migrate` command. |
|
|
|
|
|
|
|
|
|
|
|
**WARNING** Migrations will clean up your local database ! |
|
|
|
**WARNING** Migrations will clean up your local database ! |
|
|
|
|
|
|
|
|
|
|
|
## Env variables |
|
|
|
## Env variables |
|
|
|
|
|
|
|
|
|
|
|
BlockScout support 3 different JSON RPC Variants. |
|
|
|
BlockScout supports 3 different JSON RPC Variants. |
|
|
|
Vriant could be configured using `ETHEREUM_JSONRPC_VARIANT` environment variable. |
|
|
|
Variant could be configured using `ETHEREUM_JSONRPC_VARIANT` environment variable. |
|
|
|
|
|
|
|
|
|
|
|
Example: |
|
|
|
Example: |
|
|
|
```bash |
|
|
|
```bash |
|
|
|