Skip to content

Timirlon/news-aggregator-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cryptocurrency News Aggregator

Description

Cryptocurrency News Aggregator - is a Rust-based web application that fetches the latest cryptocurrency news and market data from multiple trusted sources. Users can search by cryptocurrency name to get real-time news articles with concise summaries, source info, and publication dates as well as market data such as price and capitalization of the provided currency.

Key Features

  • Search for cryptocurrency market data

  • Get the latest news related to cryptocurrencies

  • Error handling for missing data or API issues

  • Clean and modern responsive UI

  • Suggests supported cryptocurrencies

How It Works

  1. User enters a cryptocurrency name (e.g., bitcoin) in the search bar.

  2. App fetches:

    Market data like price and market cap.

    Latest news articles.

  3. Fetched data is displayed on the same page and divided into two following columns:

    • Market Data , where you can find such info as price and market cap. of provided token,

    • Latest news , where you can find list of related articles and the link to the original source by following Read more button.

Demo

When you start the application, by default you will be greeted with the following screen:

Image not available

Let's try to type the name of cryptocurrency that we are interested in right in the search bar. We will start with bitcoin:

Image not available

We could also try to type other cryptocurrency names. For example, we provide the meme crypto of Doge Coin, and get the following data:

Image not available

The application also supports the error handling. For instance, if we enter the name of fake or non-existent crypto currency, the application won't be able to fetch any market data due to that and will inform us about that. However, it might still return some news article, because the search of article is conducted based on key words that were provided by user.

Image not available

Technologies Used

  • Backend:

    • Rust - programming language
  • Frontend:

    • HTML/CSS + Bootstrap - layout and design
    • JS - scripting
  • APIs

    • CoinGecko API

      Used to fetch real-time cryptocurrency data such as current price, market capitalization, and token details.

    • GNews API

      Used to fetch recent news articles related to selected cryptocurrencies. Also includes basic date formatting and sentiment tagging.

Installation

To run this project locally, ensure that you have Rust installed. You can follow the instructions to install Rust here.

Additionally, you need "GNEWS_API_KEY" API key variable placed in your .env file

Steps to run:

  1. Clone the repository:

    git clone https://github.com/Timirlon/news-agregator-rust
    cd news-aggregator-rust
  2. Install dependencies:

    cargo build
  3. Run the server:

    cargo run

Development Team

  • Temirlan Turgimbayev SE-2321
  • Amirkhan Turgimbayev SE-2322

License

This project is designed for academic purposes only and is not intended for commercial use. Licensed under MIT License.

About

Rust-based web application for getting latest cryptocurrency news and current market data

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages