Installation & Environment Setup
Complete setup guide for local Green Goods development.
Prerequisites
Required
Node.js: v20+ (nodejs.org)
Bun: v1.0+ (bun.sh)
Git: Version control
Docker Desktop: For indexer (docker.com)
Blockchain Development
Foundry: Forge, Cast, Anvil (getfoundry.sh)
Optional
MetaMask: For operator testing
VS Code: Recommended editor with Biome extension
Installation Steps
1. Clone Repository
2. Install Dependencies
Installs all packages: client, admin, indexer, contracts.
3. Configure Environment
Edit .env with required keys:
Get API Keys:
Reown: cloud.reown.com
Pimlico: dashboard.pimlico.io
Pinata: app.pinata.cloud
4. Start Development
Services start:
Client: https://localhost:3001
Admin: http://localhost:3002
Indexer: http://localhost:8080
Package-Specific Setup
Client
HTTPS Localhost: Uses mkcert for PWA testing.
Admin
Indexer
Ensure Docker running first:
Contracts
Import keystore (one-time):
Compile:
Test:
Verification
Check services:
View logs:
Stop all:
Troubleshooting
Port conflicts:
Docker issues:
Dependency issues:
Learn More
Last updated