Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles
(untagged)

News Track - News Aggregator

0.00/5 (No votes)
1 Jul 2022 1  
A news tracking or news aggregator website that allows users to share content they find on the Internet and give it certain visibility
This project is about a news tracking website that has a membership control panel, content browser, search engine, last news, most popular and most embarassing news, related and suggested news and tags, corporate content and comments.

.NET AngularCI codecov

News Track

News Track is a news tracking or news aggregator website where users can share the content they find on the Internet and give to it certain visibility.

The project is made by using .NET 6 as backend and ElasticSearch as NoSQL database while its frontend is made with Angular 12 and Bootstrap 3.

Features

  • Membership control panel
  • Content browser
  • Search engine
  • Last news
  • Most popular news
  • Most embarassing news
  • Related news
  • Suggested news and tags
  • Corporate content (terms, privacy and about us)
  • Comments

Content Browser

By using this feature, the user is able to browse a given URL and choose an image, a title and some paragraphs that represent the news. At the same time, the user can relate this content to other content that is already on the system and tag it with the most representative words. It's important to tag and relate to other existing content properly because the suggestion process algorithm uses this information in order to accomplish more accurate suggestions.

Content browser

Search Engine

The user is able to search content by using relevant words and tags.

Search engine

Last News

This feature lists the last incoming news on the system.

News list

Most Popular News

This feature lists the most viewed news on the system. Once a user get a certain news, the views counter gets increased.

Most Embarrasing News

This feature lists the most embarrassing news on the system. The user is able to complain about certain content. Once a user clicks the embarassing button, the counter gets increased.

Related News

This feature lists related content.

Suggested News and Tags

As much content the system has, the better. The algorithm will search for related news and tags to match other content and get suggestions.

Membership Control Panel

Nowadays, the membership is limited to admin purposes, meaning that only the admin and contributors can post news, create new users, change current password, and dispatch the suggestion process. In the near feature, more kind of users will be added.

To set your admin settings, update your backend appsettings.json file. Once the application wakes up, it will create the user.

JSON
"Admin": {
  "Username": "ADMIN_USERNAME",
  "Email": "ADMIN_EMAIL_ADDRESS",
  "Password": "ADMIN_PASSWORD"
}

Corporate Content

Built-in section with Terms, Privacy and About us. You only need to update the assets/appsettings.json file to customize your website.

JSON
{
    "defaultLanguage": "en",
    "brand": "NewsTrack",
    "twitterUrl": "http://www.twitter.com",
    "facebookUrl": "http://www.facebook.com",
    "githubUrl": "http://www.github.com",
    "corporation": "NewsTrack Corp",
    "country": "Spain"
}

Remove the social media URLs or leave them blank in case you don't want to make them appear at the website's footer.

Comments

Any news can be commented by authenticated users. Also, comments can be replied starting a comment thread. Liking a comment is possible too.

Configuration

Update the backend appsettings.json file for the following purposes:

JSON
"ConnectionStrings": {
    "ElasticSearch": "http://localhost:9200"
  }

Set your ElasticSearch endpoint.

JSON
"Websites": [
    "www.somewebsite.com"
  ]

Set your website black list in order to warn you that the content you are about to post belongs to a certain owner.

JSON
"Smtp": {
    "From": "SENDER",
    "Username": "SMTP_USERNAME",
    "Host": "SMTP_HOSTNAME",
    "Password": "SMTP_PASSWORD",
    "Port": "SMPT_PORT_NUMBER"
  }

Set your SMTP settings in order to get email warnings in case your account has been blocked, account created or account confirmed. Leaving the settings as empty, the engine will generate email files into a directory called outbox.

JSON
"Tokens": {
  "Issuer": "http://localhost/NewsTrack.WebApi",
  "Audience": "http://localhost:4200",
  "Key": "SIGNING_KEY"
}

Set your JWT settings.

JSON
"ApiUrl": "http://localhost/NewsTrack.WebApi"

Set your public website domain (with or without path).

JSON
"SignInUrl": "http://localhost:4200/authentication"

Set your frontend authentication URL where the user has to be redirected once he confirms his membership.

Docker

There are a couple of compose files. The one located under /docker/backing-services creates only the ELK replicaset, while the one in /docker creates the images and containers for the frontend and backend along with the ES cluster by using the set up Docker environment.

PowerShell
docker-compose up

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here