Quick Start

Get SmartChain Hub running locally in under 5 minutes.

Prerequisites

Node.js
v20+
Python
3.12+
Git
latest

1. Clone & Install

bash
git clone https://github.com/mokwathedeveloper/SmartChain-Hub
cd SmartChain-Hub

# Frontend
cd smartchain_hub_frontend
cp .env.local.example .env.local
npm install
npm run dev   # → http://localhost:3000

2. AI Agent

bash
cd ai-agent
cp .env.example .env
pip install -r requirements.txt
python3 server/app.py   # → http://localhost:5000

3. Deploy Contracts

bash
cd blockchain
cp .env.example .env
# Set PRIVATE_KEY to funded 0G wallet
npm install
npx hardhat run scripts/deploy.js --network og_newton

4. Supabase Setup

Run these SQL files in your Supabase SQL Editor:

sql
-- Run in order:
-- 1. docs/backend/supabase_schema.sql
-- 2. docs/backend/supabase_migration_002.sql