Skip to content

Commit ffc2923

Browse files
committed
Update erpc.md
Copy and structural edits
1 parent 446f8b7 commit ffc2923

File tree

1 file changed

+7
-11
lines changed
  • docs/tools/rpc-proxy-caching

1 file changed

+7
-11
lines changed

docs/tools/rpc-proxy-caching/erpc.md

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@
1818
# Quickstart
1919

2020
1. Create your [`erpc.yaml`](https://docs.erpc.cloud/config/example) configuration file:
21-
22-
```yaml filename="erpc.yaml"
21+
```yaml title="erpc.yaml"
2322
logLevel: debug
2423
projects:
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
3533
2. Use the Docker image:
36-
3734
```bash
3835
docker run -v $(pwd)/erpc.yaml:/root/erpc.yaml -p 4000:4000 -p 4001:4001 ghcr.io/erpc/erpc:latest
3936
```
4037

4138
3. Send your first request:
42-
4339
```bash
4440
curl --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
6156
git clone https://github.com/erpc/erpc.git
@@ -66,9 +61,10 @@ docker-compose up -d
6661
```
6762

6863
5. 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

7369
6. Send more requests and watch the metrics being collected and visualized in Grafana.
7470

0 commit comments

Comments
 (0)