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.
Crypto Social Insights Platform - Real-time cryptocurrency analytics dashboard
- 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
- 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 Reach Table: Track cryptocurrency mentions across platforms
- Multi-platform Analytics: Twitter, Instagram, TikTok, and Telegram metrics
- Social Sentiment: Monitor social media buzz around cryptocurrencies
- 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
- 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
- Next.js API Routes - Serverless API endpoints
- CoinMarketCap API - Real-time cryptocurrency data
- Axios - HTTP client for API requests
- ESLint - Code linting
- PostCSS - CSS processing
- Class Variance Authority - Component variant management
- Node.js 18+
- npm, yarn, pnpm, or bun
- CoinMarketCap API key
-
Clone the repository
git clone <repository-url> cd Social_Crypto_Platform
-
Install dependencies
npm install # or yarn install # or pnpm install
-
Environment Setup Create a
.env.localfile in the root directory:NEXT_CMC_API_KEY=your_coinmarketcap_api_key_here
-
Run the development server
npm run dev # or yarn dev # or pnpm dev # or bun dev
-
Open your browser Navigate to http://localhost:3000
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
| 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 |
- Automatic refresh every 30 seconds
- Error handling with fallback states
- Loading skeletons for better UX
- Mobile-first approach
- Grid layouts that adapt to screen size
- Touch-friendly interface elements
- Server-side rendering with Next.js
- Image optimization with Next.js Image component
- Efficient state management with React hooks
- Push your code to GitHub
- Connect your repository to Vercel
- Add your environment variables
- Deploy automatically
- Netlify: Compatible with Next.js static export
- Railway: Full-stack deployment
- AWS: Using Vercel or custom setup
NEXT_CMC_API_KEY=your_coinmarketcap_pro_api_keyGet your API key from CoinMarketCap Pro
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- CoinMarketCap for providing comprehensive crypto data
- Next.js for the amazing React framework
- Tailwind CSS for the utility-first CSS framework
- Radix UI for accessible component primitives
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