Installation & Environment Setup

Complete setup guide for local Green Goods development.


Prerequisites

Required

Blockchain Development

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:

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