Crypto Tracker is a web application that allows users to view cryptocurrency details, compare different cryptocurrencies, and track their historical data. The application uses two APIs to fetch data:
- CoinRanking API: For retrieving cryptocurrency details and historical data.
- NewsAPI: For fetching the latest news related to cryptocurrencies (please note that this feature requires a paid plan, so it may not work on the hosted version. A screenshot demonstrating this functionality is provided).
You can explore the project here.
Crypto Tracker provides a comprehensive view of the cryptocurrency market. Users can:
- View Data History: Track the historical price data of any cryptocurrency.
- Compare Cryptocurrencies: Compare the performance of multiple cryptocurrencies side-by-side.
- See Graphs: Visualize cryptocurrency data with interactive charts.
- View Top 100 Cryptocurrencies: Get a list of the top 100 cryptocurrencies by market cap.
The CoinRanking API is used to fetch:
- Cryptocurrency Details: Information about different cryptocurrencies.
- Historical Data: Price history for cryptocurrencies over time.
API Details:
- Endpoint:
/coin/{coin_id}/history
- API Documentation: CoinRanking API
The NewsAPI is used to fetch the latest news articles related to cryptocurrencies. This feature requires a paid plan, so it does not work on the hosted version.
API Details:
- Endpoint:
/v2/everything?q=cryptocurrency
- API Documentation: NewsAPI
- Data History: View historical price data for a selected cryptocurrency.
- Comparison: Compare the prices and performance of different cryptocurrencies.
- Graphs: Visualize historical data with interactive charts.
- Top 100 Cryptos: Display a list of the top 100 cryptocurrencies by market capitalization.
To run this project locally, follow these steps:
-
Clone the repository:
git clone https://github.com/yourusername/crypto-tracker.git cd crypto-tracker
-
Install dependencies:
npm install
-
Set up environment variables: Create a
.env
file in the root directory and add your API keys:COINRANKING_API_KEY=your_coinranking_api_key NEWS_API_KEY=your_news_api_key
-
Run the application:
npm start
-
Open the application in your browser:
http://localhost:3000
-
Use the interface to:
- View historical data by selecting a cryptocurrency.
- Compare cryptocurrencies by adding them to the comparison view.
- View graphs and historical data charts.
- Check out the top 100 cryptocurrencies.
Contributions are welcome! If you have suggestions or improvements, please feel free to:
- Open an issue
- Submit a pull request
Thank you for checking out Crypto Tracker!