TradeNexus Documentation

Overview

Trenchr is a social networking platform designed specifically for cryptocurrency traders. It combines the familiar swipe-based matching interface with real wallet analysis and trading performance metrics to help traders connect with like-minded individuals in the crypto space.

šŸ”„ Trenchers

Crypto traders who use the platform

šŸ“Š Wallet Analysis

Real-time analysis of Solana wallets

šŸ¤ Smart Matching

AI-powered matching based on trading style

Core Features

šŸ”„ Swipe-based Matching

Tinder-style interface for discovering other traders

šŸ’° Real Wallet Integration

Connect Phantom wallet for automatic profile population

šŸ“ˆ Trading Performance Analysis

Win rate, ROI, profit/loss tracking

šŸ’¬ Private Messaging

Secure chat between matched traders

šŸŽÆ Profile Customization

Rich profiles with trading stats and preferences

🌐 Global Network

Connect with traders worldwide

Tech Stack

Frontend

  • • Next.js 14 (App Router)
  • • TypeScript
  • • Tailwind CSS
  • • Framer Motion
  • • shadcn/ui
  • • Lucide React

Backend

  • • Supabase (BaaS)
  • • PostgreSQL
  • • Real-time subscriptions
  • • Authentication
  • • Row Level Security
  • • File storage

Blockchain

  • • Solana Web3
  • • Phantom Wallet
  • • Custom Wallet API
  • • Trading analysis
  • • Railway deployment

Getting Started

Prerequisites

  • • Node.js 18+ and npm
  • • Supabase account
  • • Phantom wallet (for testing)

Installation

# Clone the repository
git clone https://github.com/your-org/trenchr.git
cd trenchr

# Install dependencies
npm install

# Set up environment variables
cp .env.local.example .env.local

# Start development server
npm run dev

Environment Variables

NEXT_PUBLIC_SUPABASE_URL=your-supabase-project-url
NEXT_PUBLIC_SUPABASE_ANON_KEY=your-supabase-anon-key

Project Structure

trenchr/
ā”œā”€ā”€ app/                    # Next.js App Router pages
│   ā”œā”€ā”€ api/               # API routes
│   ā”œā”€ā”€ auth/              # Authentication pages
│   ā”œā”€ā”€ chat/              # Chat functionality
│   ā”œā”€ā”€ dashboard/         # User dashboard
│   ā”œā”€ā”€ matches/           # Matches listing
│   ā”œā”€ā”€ profile/           # Profile management
│   ā”œā”€ā”€ swipe/             # Swipe interface
│   └── page.tsx           # Landing page
ā”œā”€ā”€ components/            # Reusable React components
│   ā”œā”€ā”€ ui/               # shadcn/ui components
│   ā”œā”€ā”€ auth-form.tsx     # Authentication form
│   ā”œā”€ā”€ profile-form.tsx  # Profile creation/editing
│   ā”œā”€ā”€ swipe-card.tsx    # Swipeable user cards
│   └── wallet-analyzer.tsx # Wallet analysis UI
ā”œā”€ā”€ lib/                  # Utility libraries
│   ā”œā”€ā”€ supabase.ts       # Supabase client and types
│   ā”œā”€ā”€ wallet.ts       # Wallet connection utilities
│   └── wallet-api.ts     # Wallet analysis API client
ā”œā”€ā”€ scripts/              # Database setup scripts
└── docs/                 # Documentation