Skip to content

Quick Start

Get Crypto Data Aggregator running in under 5 minutes.

Prerequisites

  • Node.js 18.17+
  • npm or pnpm
  • Git

Installation

1. Clone the Repository

git clone https://github.com/nirholas/crypto-data-aggregator.git
cd crypto-data-aggregator

2. Install Dependencies

npm install
# or
pnpm install

3. Set Up Environment

cp .env.example .env.local

Edit .env.local with your configuration:

# x402 Payment Address (your wallet for receiving payments)
X402_PAY_TO_ADDRESS=0xYourWalletAddress

# Network (testnet for development)
X402_NETWORK=eip155:84532

4. Start Development Server

npm run dev

Visit http://localhost:3000 to see the app!

What's Next?

  • Explore the API

Learn about available endpoints

API Reference

  • Set Up Payments

Configure x402 for premium features

x402 Guide

  • Configuration

Customize for your needs

Configuration

Verify Installation

Test the API is working:

curl http://localhost:3000/api/market

You should see market data returned as JSON.

Troubleshooting

Port Already in Use

# Use a different port
npm run dev -- -p 3001

Module Not Found Errors

# Clear cache and reinstall
rm -rf node_modules .next
npm install

See the Troubleshooting Guide for more solutions.