Getting Started
This guide walks you through cloning the repo, installing dependencies, configuring your environment, and running all three services locally.Prerequisites
| Tool | Minimum Version | Install |
|---|---|---|
| Node.js | >= 20.0.0 | nodejs.org |
| pnpm | >= 8.0.0 | npm i -g pnpm |
| Foundry | latest | getfoundry.sh |
| PostgreSQL | >= 15 | postgresql.org |
| Redis | >= 7 | redis.io |
| Git | any | git-scm.com |
Installation
Environment Variables
- Root .env
- Backend
- Indexer
- Frontend
Create a
.env file at the project root:Database Setup
Running Locally
Open three separate terminals:Terminal 2 — Indexer
VaultFactory for VaultDeployed events, and listens to any vaults listed in KNOWN_VAULT_ADDRESSES.Smart Contract Development
Compile contracts
Run tests
Local fork
Workspace Scripts
From the monorepo root you can run scripts across all packages:Troubleshooting
`pnpm install` fails on a package
`pnpm install` fails on a package
Make sure you’re on Node.js
>= 20 and pnpm >= 8:Prisma client not found
Prisma client not found
Regenerate the client after any schema change:
Redis connection refused
Redis connection refused
Ensure Redis is running:
Indexer not picking up events
Indexer not picking up events
- Confirm
VAULT_FACTORY_ADDRESSinapps/indexer/.envmatches the deployed contract - Check the RPC endpoint is reachable
- Verify
REDIS_URLmatches the backend’sREDIS_URL(same Redis instance)