Skip to content

firewindy930/Social_Crypto_Platform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ Crypto Social Insights Platform

A modern, real-time cryptocurrency analytics platform that combines market data with social media insights. Built with Next.js 15, TypeScript, and Tailwind CSS, this application provides comprehensive crypto market analysis and trending information.

πŸ“± Screenshots

Crypto Social Insights Platform Crypto Social Insights Platform - Real-time cryptocurrency analytics dashboard

✨ Features

πŸ“Š Market Analytics

  • Real-time Market Data: Live cryptocurrency prices, market cap, and volume data
  • Trending Coins: Top 5 trending cryptocurrencies with price changes
  • Performance Tracking: 24-hour and 7-day performance metrics
  • Market Rankings: Comprehensive coin listings with detailed metrics

πŸ“ˆ Advanced Analytics

  • Growing Coins (24h): Cryptocurrencies with highest 24-hour gains
  • Growing Coins (Week): Weekly top performers
  • Losing Coins: Coins experiencing significant losses
  • Market Cap Analysis: Detailed market capitalization data

🌐 Social Media Integration

  • Social Reach Table: Track cryptocurrency mentions across platforms
  • Multi-platform Analytics: Twitter, Instagram, TikTok, and Telegram metrics
  • Social Sentiment: Monitor social media buzz around cryptocurrencies

🎨 Modern UI/UX

  • Dark/Light Theme: Seamless theme switching with smooth animations
  • Responsive Design: Optimized for desktop, tablet, and mobile devices
  • Real-time Updates: Auto-refreshing data every 30 seconds
  • Interactive Tables: Sortable and filterable data tables
  • Loading States: Skeleton loaders for better user experience

πŸ› οΈ Tech Stack

Frontend

  • Next.js 15 - React framework with App Router
  • TypeScript - Type-safe JavaScript
  • Tailwind CSS - Utility-first CSS framework
  • Radix UI - Accessible component primitives
  • Lucide React - Beautiful icons
  • React Icons - Additional icon library

Backend & APIs

  • Next.js API Routes - Serverless API endpoints
  • CoinMarketCap API - Real-time cryptocurrency data
  • Axios - HTTP client for API requests

Development Tools

  • ESLint - Code linting
  • PostCSS - CSS processing
  • Class Variance Authority - Component variant management

πŸš€ Getting Started

Prerequisites

  • Node.js 18+
  • npm, yarn, pnpm, or bun
  • CoinMarketCap API key

Installation

  1. Clone the repository

    git clone <repository-url>
    cd Social_Crypto_Platform
  2. Install dependencies

    npm install
    # or
    yarn install
    # or
    pnpm install
  3. Environment Setup Create a .env.local file in the root directory:

    NEXT_CMC_API_KEY=your_coinmarketcap_api_key_here
  4. Run the development server

    npm run dev
    # or
    yarn dev
    # or
    pnpm dev
    # or
    bun dev
  5. Open your browser Navigate to http://localhost:3000

πŸ“ Project Structure

src/
β”œβ”€β”€ app/                    # Next.js App Router
β”‚   β”œβ”€β”€ api/               # API routes
β”‚   β”‚   β”œβ”€β”€ listings/      # Market data endpoint
β”‚   β”‚   β”œβ”€β”€ trending/      # Trending coins endpoint
β”‚   β”‚   β”œβ”€β”€ growing-24h/   # 24h gainers endpoint
β”‚   β”‚   β”œβ”€β”€ growing-week/  # Weekly gainers endpoint
β”‚   β”‚   β”œβ”€β”€ losing/        # Losing coins endpoint
β”‚   β”‚   └── social/        # Social media data endpoint
β”‚   β”œβ”€β”€ globals.css        # Global styles
β”‚   β”œβ”€β”€ layout.tsx         # Root layout
β”‚   └── page.tsx           # Home page
β”œβ”€β”€ components/            # React components
β”‚   β”œβ”€β”€ ui/               # Reusable UI components
β”‚   β”‚   β”œβ”€β”€ button.tsx
β”‚   β”‚   β”œβ”€β”€ card.tsx
β”‚   β”‚   β”œβ”€β”€ table.tsx
β”‚   β”‚   └── ...
β”‚   β”œβ”€β”€ crypto-table.tsx  # Main market data table
β”‚   β”œβ”€β”€ trending-coins.tsx # Trending coins widget
β”‚   β”œβ”€β”€ social-reach-table.tsx # Social media analytics
β”‚   └── ...
└── lib/                  # Utilities and types
    β”œβ”€β”€ types.ts          # TypeScript type definitions
    └── utils.ts          # Helper functions

πŸ”§ API Endpoints

Endpoint Description Data Source
/api/listings Top 20 cryptocurrencies by market cap CoinMarketCap
/api/trending Top 5 trending cryptocurrencies CoinMarketCap
/api/growing-24h Top gainers in 24 hours CoinMarketCap
/api/growing-week Top gainers in 7 days CoinMarketCap
/api/losing Top losers in 7 days CoinMarketCap
/api/social Social media metrics CoinMarketCap

🎯 Key Features Implementation

Real-time Data Updates

  • Automatic refresh every 30 seconds
  • Error handling with fallback states
  • Loading skeletons for better UX

Responsive Design

  • Mobile-first approach
  • Grid layouts that adapt to screen size
  • Touch-friendly interface elements

Performance Optimization

  • Server-side rendering with Next.js
  • Image optimization with Next.js Image component
  • Efficient state management with React hooks

πŸš€ Deployment

Vercel (Recommended)

  1. Push your code to GitHub
  2. Connect your repository to Vercel
  3. Add your environment variables
  4. Deploy automatically

Other Platforms

  • Netlify: Compatible with Next.js static export
  • Railway: Full-stack deployment
  • AWS: Using Vercel or custom setup

πŸ”‘ Environment Variables

NEXT_CMC_API_KEY=your_coinmarketcap_pro_api_key

Get your API key from CoinMarketCap Pro

🀝 Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ™ Acknowledgments

πŸ“ž Support

If you have any questions or need help, please open an issue or contact the maintainers.


Built with ❀️ using Next.js, TypeScript, and Tailwind CSS

About

Developed a real-time cryptocurrency analytics platform combining live market data with social media insights.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors