Skip to content

Blaze-Trade/Blazeit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blaze It

A gamified crypto trading platform with a brutalist, swipe-based UI and competitive portfolio quests on the Aptos network.

Blaze It is a gamified crypto trading and portfolio management platform built on the Aptos blockchain, designed with a raw, brutalist aesthetic. The core experience revolves around a 'Tinder-for-tokens' swipe interface, making investment decisions fast, intuitive, and engaging. The application is divided into three main modules: 'Trade', where users execute real or simulated transactions by swiping on token cards; 'Analysis', a stark dashboard for tracking portfolio performance; and 'Quest', a competitive mode where users build virtual portfolios to compete for centralized prize pools. The entire UI embraces brutalism, featuring oversized typography, a high-contrast color scheme, asymmetrical layouts, and sharp, unapologetic geometric forms, creating a visually striking and memorable user experience.

Key Features

  • Swipe-Based Trading: An intuitive, 'Tinder-for-tokens' interface. Swipe right to buy, left to skip, and up to watchlist.
  • Competitive Quests: Join time-based portfolio-building challenges, compete against other users, and win from prize pools.
  • Portfolio Analysis: A minimalist dashboard to track your portfolio value, profit/loss, and current holdings.
  • Brutalist UI/UX: A stark, visually striking design with oversized typography, high-contrast colors, and sharp geometric forms.
  • Aptos Wallet Integration: Securely connect your Aptos-compatible wallet to manage your assets.
  • Mobile-First Design: A fully responsive layout optimized for a seamless experience on any device.

Technology Stack

  • Frontend:
    • Framework: React (with Vite)
    • UI Components: shadcn/ui
    • Styling: Tailwind CSS
    • Animations: Framer Motion
    • State Management: Zustand
    • Routing: React Router
  • Backend:
    • Database: Supabase (PostgreSQL)
    • Authentication: Supabase Auth
    • Storage: Supabase Storage
    • Real-time: Supabase Realtime
  • Blockchain:
    • Network: Aptos
    • Wallet Integration: @aptos-labs/wallet-adapter-react
    • SDK: @aptos-labs/ts-sdk
  • Language: TypeScript

Getting Started

Follow these instructions to get a local copy up and running for development and testing purposes.

Prerequisites

  • Node.js (v18 or later)
  • Bun package manager (or npm)
  • Supabase account (free tier available)

Installation

  1. Clone the repository:
    git clone https://github.com/your-username/blaze-it.git
  2. Navigate to the project directory:
    cd blaze-it
  3. Install dependencies:
    bun install
    # or
    npm install
  4. Set up Supabase:
    • Follow the detailed setup guide in SUPABASE_SETUP.md
    • Create a Supabase project and configure your environment variables

Development

To start the local development server:

bun run dev
# or
npm run dev

The application will be available at http://localhost:3000. The Vite server supports Hot Module Replacement (HMR) for a fast and efficient development experience.

Note: Make sure you have set up your Supabase project and configured your environment variables before running the development server.

Deployment

This project can be deployed to any static hosting service that supports React applications.

Build the Project

bun run build
# or
npm run build

This command bundles the React frontend for production.

Deploy Options

  • Vercel: Connect your GitHub repository to Vercel for automatic deployments
  • Netlify: Deploy directly from GitHub with automatic builds
  • Cloudflare Pages: Use Cloudflare Pages for global CDN distribution
  • Any Static Host: Upload the dist/ folder to any static hosting service

Environment Variables

Make sure to configure the following environment variables in your deployment platform:

  • VITE_SUPABASE_URL: Your Supabase project URL
  • VITE_SUPABASE_ANON_KEY: Your Supabase anonymous key
  • VITE_MODULE_ADDRESS: Your Aptos contract address
  • VITE_APTOS_NETWORK: Aptos network (devnet/mainnet)

Project Structure

The codebase is organized into the following directories:

  • src/: Contains the entire React frontend application
    • components/: Reusable UI components
    • pages/: Main application pages (Trade, Analysis, Quest, etc.)
    • hooks/: Custom React hooks for Supabase integration
    • lib/: Utility functions and API clients
    • stores/: Zustand state management
  • shared/: Contains TypeScript types and mock data
  • supabase-schema.sql: Database schema for Supabase setup
  • SUPABASE_SETUP.md: Detailed Supabase setup guide

Key Features Implemented

✅ Completed Features

  • Wallet Integration: Connect Aptos-compatible wallets
  • Token Trading: Swipe-based token buying/selling with blockchain integration
  • Quest System: Create and join competitive trading quests
  • Portfolio Analysis: Track holdings, P&L, and performance
  • Watchlist: Save tokens for later review
  • Token Creation: Request custom token creation
  • Real-time Updates: Live portfolio and quest data
  • Responsive Design: Mobile-first brutalist UI

🔄 Supabase Integration

The application has been fully migrated from Cloudflare Workers to Supabase:

  • Database: PostgreSQL with Row Level Security
  • Authentication: Wallet-based user management
  • Storage: Token images and metadata
  • Real-time: Live updates for quests and portfolios
  • API: RESTful endpoints with TypeScript types

⚠️ Blockchain Integration Status

The blockchain integration is currently in development:

  • Token Fetching: Attempts to fetch tokens from Aptos blockchain via contract calls
  • Fallback System: Gracefully falls back to Supabase tokens and mock data when blockchain calls fail
  • Error Handling: Comprehensive error handling for contract interactions
  • Development Mode: Currently uses demo/mock tokens when blockchain integration is unavailable

Note: The blockchain integration requires a deployed Aptos contract with the correct module address. If you see console warnings about contract calls failing, this is expected behavior when the contract is not deployed or the module address is incorrect.

About

Quest based tinder type trading

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors