https://github.com/0xintuition/intuition-backend-template
https://github.com/0xintuition/intuition-backend-template
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/0xintuition/intuition-backend-template
- Owner: 0xIntuition
- Created: 2024-10-01T14:56:47.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-16T12:12:49.000Z (over 1 year ago)
- Last Synced: 2025-06-24T21:15:38.564Z (11 months ago)
- Language: TypeScript
- Size: 230 KB
- Stars: 4
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Intuition backend template

## Deploy to render
[](https://render.com/deploy?repo=https://github.com/0xIntuition/intuition-backend-template)
You will need to provide these secrets:
```
IPFS_GATEWAY_URL
PINATA_GATEWAY_TOKEN
PONDER_RPC_URL_1
PONDER_RPC_URL_8453
PONDER_RPC_URL_84532
```
After all services up and running, look up hasura admin secret in the render dashboard, and run this command
```
hasura metadata apply --project hasura --endpoint https://hasura-CHANGEME.onrender.com --admin-secret CHANGEME
hasura metadata ic drop --project hasura --endpoint https://hasura-CHANGEME.onrender.com --admin-secret CHANGEME
hasura migrate apply --project hasura --database-name ponder --endpoint https://hasura-CHANGEME.onrender.com --admin-secret CHANGEME
hasura metadata apply --project hasura --endpoint https://hasura-CHANGEME.onrender.com --admin-secret CHANGEME
```
Start postgres, hasura, pgweb
```
pnpm dev
```
Indexing
```
cd ponder
pnpm i
cp .env.example .env.local
```
Edit `.env.local`
Start indexing base mainnet
```
pnpm dev:mainnet
```
Open http://localhost:42069/graphql
Configure hasura
```
cd ..
pnpm dev:hasura
```
Open http://localhost:8080/
## Local chain
Start local geth, depoy contract, create predicates
```
cd local-chain
pnpm dev
```
### Indexing local chain
```
cd ponder
pnpm dev
```