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

fix: Wrong example links in Apibara section #345

Merged
merged 1 commit into from
Mar 14, 2024
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
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
Loading