File tree Expand file tree Collapse file tree 1 file changed +7
-11
lines changed
docs/tools/rpc-proxy-caching Expand file tree Collapse file tree 1 file changed +7
-11
lines changed Original file line number Diff line number Diff line change 1818# Quickstart
1919
20201 . Create your [ ` erpc.yaml ` ] ( https://docs.erpc.cloud/config/example ) configuration file:
21-
22- ``` yaml filename="erpc.yaml"
21+ ``` yaml title="erpc.yaml"
2322logLevel : debug
2423projects :
2524 - id : main
@@ -29,17 +28,14 @@ projects:
2928 - endpoint : https://polygon-mainnet.blastapi.io/xxxx
3029 - endpoint : evm+alchemy://xxxx-my-alchemy-api-key-xxxx
3130` ` `
32-
33- See [a complete config example](https://docs.erpc.cloud/config/example) for inspiration.
31+ See [a complete config example](https://docs.erpc.cloud/config/example) for inspiration.
3432
35332. Use the Docker image:
36-
3734` ` ` bash
3835docker run -v $(pwd)/erpc.yaml:/root/erpc.yaml -p 4000:4000 -p 4001:4001 ghcr.io/erpc/erpc:latest
3936```
4037
41383 . Send your first request:
42-
4339``` bash
4440curl --location ' http://localhost:4000/main/evm/137' \
4541--header ' Content-Type: application/json' \
@@ -54,8 +50,7 @@ curl --location 'http://localhost:4000/main/evm/137' \
5450}'
5551```
5652
57- 4 . Bring up monitoring stack (Prometheus, Grafana) using docker-compose:
58-
53+ 4 . Bring up monitoring stack (Prometheus, Grafana) using ` docker-compose ` :
5954``` bash
6055# clone the repo if you haven't
6156git clone https://github.com/erpc/erpc.git
@@ -66,9 +61,10 @@ docker-compose up -d
6661```
6762
68635 . Open Grafana at [ http://localhost:3000 ] ( http://localhost:3000 ) and login with the following credentials:
69-
70- - username: ` admin `
71- - password: ` admin `
64+ ``` text
65+ username: admin
66+ password: admin
67+ ```
7268
73696 . Send more requests and watch the metrics being collected and visualized in Grafana.
7470
You can’t perform that action at this time.
0 commit comments