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

Commit

Permalink
Update apibara section
Browse files Browse the repository at this point in the history
  • Loading branch information
gianalarcon committed May 8, 2024
1 parent db0b6cd commit 98b259b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ch02-16-apibara.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Some examples of what you can build with Apibara are:
- Real-time NFT collections dashboard
- Real-time swaps dashboard

## Building an exmaple
## Building an example

In this example, we will build a small app similar to the concept [Starkscan](https://starkscan.io/) but that will solely listen to swaps happening on AVNU in real-time.
For the fronted we will use react.
Expand Down Expand Up @@ -63,7 +63,7 @@ npm init -y
Install apibara's dependencies and some other dependencies we will use:

```bash
npm install @apibara/protocol @apibara/startknet starknet ethers dotenv
npm install @apibara/protocol @apibara/starknet starknet ethers dotenv
```

Create a file called `index.ts` and add the following code:
Expand Down Expand Up @@ -442,7 +442,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.
Now 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/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 98b259b

Please sign in to comment.