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

Apibara Example Chapter #340

Merged
merged 2 commits into from
Mar 5, 2024
Merged
Show file tree
Hide file tree
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
Binary file added .DS_Store
Binary file not shown.
1 change: 1 addition & 0 deletions examples/apibara-example/apibara-frontend/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
MONGO_DATABASE_NAME = "<database_name>"
23 changes: 23 additions & 0 deletions examples/apibara-example/apibara-frontend/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
22 changes: 22 additions & 0 deletions examples/apibara-example/apibara-frontend/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Apibara example frontend

This is the frontend code to demonstrate Apibara's capabilities.

1. Get the files
2. Install the dependencies

```bash
npm install
```

3. Set the Mongo Database name where the data is stored by Apibara

```plaintext
MONGO_DATABASE_NAME = your_mongo_database_name
```

4. Run the frontend

```bash
npm run start
```
Loading
Loading