A modern, responsive cryptocurrency marketplace application built with React and Vite that provides real-time cryptocurrency data, interactive charts, and comprehensive market information.
- Live Cryptocurrency Data: Real-time prices, market caps, and 24-hour price changes for top 10 cryptocurrencies
- Search Functionality: Search and filter cryptocurrencies by name
- Multi-Currency Support: View prices in USD, EUR, and INR
- Responsive Design: Fully responsive layout optimized for desktop and mobile devices
- Clean UI: Modern, intuitive interface with Tailwind CSS styling
- Detailed Market Data: Comprehensive cryptocurrency information including market cap rank, current price, 24-hour high/low
- Interactive Price Charts: Historical price data visualization using Google Charts
- 10-Day Price History: Tabular and graphical representation of recent price trends
- Dynamic Routing: Individual pages for each cryptocurrency with URL-based navigation
- Context API: Centralized state management for cryptocurrency data and currency selection
- Error Handling: Robust API error handling with user-friendly feedback
- Loading States: Smooth loading indicators for better user experience
- Environment Variables: Secure API key management
- Modern React Patterns: Uses React hooks, context, and functional components
Experience the app live on Vercel with real-time cryptocurrency data.
- React 18 - Modern React with hooks and context
- Vite - Fast build tool and development server
- React Router DOM - Client-side routing for navigation
- Tailwind CSS - Utility-first CSS framework for responsive design
- CSS Modules - Scoped styling
- React Google Charts - Interactive charts for price visualization
- CoinGecko API - Real-time cryptocurrency market data
- Fetch API - Modern promise-based HTTP requests
- ESLint - Code linting and formatting
- Vite Dev Server - Hot module replacement for development
src/
βββ components/
β βββ Navbar.jsx # Navigation component with currency selector
β βββ Footer.jsx # Footer component
β βββ LineChart.jsx # Price chart visualization component
βββ pages/
β βββ Home.jsx # Homepage with cryptocurrency list
β βββ Coin.jsx # Individual coin detail page
βββ context/
β βββ CoinContext.jsx # Global state management for crypto data
βββ App.jsx # Main app component with routing
βββ main.jsx # Application entry point
- Node.js (version 16 or higher)
- npm or yarn package manager
- CoinGecko API key (optional for enhanced rate limits)
-
Clone the repository
git clone https://github.com/Vedant1607/Cryptoplace.git cd Cryptoplace -
Install dependencies
npm install
-
Start the development server
npm run dev
-
Build for production
npm run build
- Market Data:
/coins/markets- Fetches cryptocurrency market data - Individual Coin:
/coins/{id}- Retrieves detailed information for a specific cryptocurrency - Historical Data:
/coins/{id}/market_chart- Gets historical price data for charts
- USD - US Dollar ($)
- EUR - Euro (β¬)
- INR - Indian Rupee (βΉ)
The application is fully responsive and provides optimal viewing experience across:
- Desktop - Full feature set with comprehensive data tables
- Tablet - Adapted layouts with essential information
- Mobile - Streamlined interface with core functionality
Global state management providing:
- Cryptocurrency data fetching
- Currency selection (USD/EUR/INR)
- Error handling and loading states
- Top 10 cryptocurrency listing
- Search and filter functionality
- Real-time price updates
- Responsive data table
- Individual cryptocurrency information
- Interactive price charts
- Historical data visualization
- Market statistics
- Google Charts integration
- 10-day historical price data
- Responsive chart design
- Date-formatted x-axis
The application is deployed on Vercel with:
- Automatic deployments from the main branch
- Environment variable management
- CDN optimization for fast loading
- SSL certificate for secure connections
Contributions are welcome! Please feel free to submit a Pull Request.
- Follow React best practices and hooks patterns
- Maintain responsive design principles
- Add appropriate error handling for API calls
- Write descriptive commit messages
- Test functionality across different screen sizes
This project is open source and available under the MIT License.
Vedant - GitHub Profile
Built using React, Vite, and the CoinGecko API