Skip to content

sercanvr/binance-live-chart-project

Repository files navigation

Binance Live Chart

A real-time cryptocurrency price tracking application powered by Binance WebSocket API. Built with React 19, Vite 8, Tailwind CSS v4, and the ReUI design system — featuring live area charts, multi-coin support, dark/light theme, and i18n (TR/EN/DE).

React Vite Tailwind CSS License


✨ Features

  • Real-Time Data — Live price streaming via Binance WebSocket (1s interval)
  • 6 Cryptocurrencies — BTC, ETH, BNB, SOL, XRP, ADA with USDT pairs
  • Interactive Area Chart — Recharts-based smooth gradient chart with custom tooltips
  • Dark / Light Theme — Binance-inspired dark mode as default, toggleable
  • Multi-Language (i18n) — Turkish, English, German with full translations
  • Mobile Responsive — Hamburger menu with liquid glass UI buttons
  • Atomic Design — Structured as atoms, molecules, organisms, templates
  • ReUI Design System — CSS variable-based theming with Radix UI primitives
  • Live Page Title — Browser tab shows current price in real-time
  • Binance Trade Link — Direct link to trade the selected coin on Binance
  • 20 Unit Tests — Vitest + Testing Library coverage

🛠 Tech Stack

Category Technology
Framework React 19
Build Tool Vite 8.0.0-beta
Styling Tailwind CSS v4, ReUI Design System
Charts Recharts
State React Context + Custom Hooks
i18n i18next, react-i18next
UI Primitives Radix UI
Icons Lucide React
Animation Motion (Framer Motion)
Testing Vitest 4, Testing Library, jsdom
Deployment Vercel

📁 Project Structure

src/
├── components/
│   ├── atoms/          # Card, Button, ScrollToTop
│   ├── molecules/      # ThemeToggle, LanguageSelector
│   └── organisms/      # Navbar, LiveChart, Footer
├── contexts/           # ThemeContext (dark/light)
├── hooks/              # useMultiCryptoWebSocket
├── i18n/
│   └── locales/        # tr.json, en.json, de.json
├── lib/                # utils (cn helper)
├── utils/              # console-art
└── __tests__/          # Vitest test suites

🚀 Getting Started

# Install dependencies
pnpm install

# Start development server
pnpm dev

# Build for production
pnpm build

# Run tests
pnpm test

📸 Preview

Dark Mode Light Mode
Default Binance-inspired dark theme with #09090b background Clean white theme with full contrast

🌐 Deployment

Configured for Vercel with SPA rewrites. Push to main branch for automatic deployment.

{
  "rewrites": [{ "source": "/(.*)", "destination": "/index.html" }]
}

📄 License

MIT

About

An open-source project that visualizes live cryptocurrency data using the Binance WebSocket API. This tool allows users to track the price movements of selected cryptocurrencies on real-time charts. It is designed to provide a fast and reliable data stream for traders and investors.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors