Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
fix: Wrong example links in Apibara section (#345)
Browse files Browse the repository at this point in the history
  • Loading branch information
machuwey authored Mar 14, 2024
1 parent c379935 commit 378e645
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/ch02-16-apibara.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Apibara

Apibara is the fastest platform to build production-grade indexers that connect onchain data to web2 services.
Apibara is the fastest platform to build production-grade indexers that connect onchain data to web2 services, like
for example Postrgres, MongoDB, or any other database of your choice.
More [here](https://apibara.com/).

## What is an indexer?
Expand All @@ -10,6 +11,8 @@ It makes it easy to query the blockchain data and build applications on top of i

## What can you build with Apibara?

Some examples of what you can build with Apibara are:

- Real-time NFT collections dashboard
- Real-time swaps dashboard

Expand Down Expand Up @@ -420,7 +423,7 @@ async function handleEventAvnuSwap(
}
```
If you want to get the full code, you can find it [here](https://github.com/starknet-edu/starknetbook/tree/0919a1974f2474c00690233a1c50d30386aca300/examples).
If you want to get the full code, you can find it [here](https://github.com/starknet-edu/starknetbook/tree/main/examples/apibara-example/apibara-server).
## Run the server
Expand All @@ -440,7 +443,7 @@ npm run start
## Lets see it in action
No that we have apibara streaming the swap objects into our MongoDB, we can build a frontend to display the swaps in real-time.
Please see the example in [here](https://github.com/starknet-edu/starknetbook/tree/0919a1974f2474c00690233a1c50d30386aca300/examples).
Please see the example in [here](https://github.com/starknet-edu/starknetbook/tree/main/examples/apibara-example/apibara-frontend)
Since, this go out of the scope of this book, we will not cover the frontend part.
Expand Down

0 comments on commit 378e645

Please sign in to comment.