This project is designed to revolutionize the way you consume news by offering concise summaries of original news articles. The primary goal is to help you save time by providing short versions of articles that capture the main points and essential information. Instead of reading lengthy articles, you can quickly grasp the core message and stay informed efficiently. Whether you're on the go or just looking to streamline your news intake, our service ensures you get the information you need without the extra reading time.
NewsHub: Your shortcut to staying informed. Dive into concise summaries of top stories and save time without compromising on knowledge.
*New news sources will be added to the website on a weekly basis.
The app contains 2 views:
- Home view - Here are the news sources where you can view information about them and choose which source you want to read news from.
- Detail view - Here you can read the main news from the selected news source. You will see the headline and a short version of the news text, which has been condensed and summarized by the Llama3 neural network. If the short version of the text is not sufficient for you, you can proceed to read the original news article via the link provided on the page.
You can also clone the project and run it with Docker(the Docker instruction below) or enjoy the preview video below instead 😄
demo.mp4
- Docker: Ensure Docker is installed on your machine. You can download it from Docker's official website.
- Docker Compose: Make sure it's installed as well. You can find installation instructions here.
-
Clone the Repository:
git clone https://github.com/casual-user-asm/NewsHub.git cd yourproject
-
Create and Configure
.env
File:-
Create the
.env
file to add any necessary configuration values (e.g., database URLs, API keys). -
Below are the common configuration fields you may need to set in your .env file.
DEBUG=True
SECRET_KEY=*
- Run this command in your terminal to generate a new secret key:
python -c 'from django.core.management.utils import get_random_secret_key; print(get_random_secret_key())'
- DATABASE_NAME=postgres
- DATABASE_USER=postgres
- DATABASE_PASSWORD=postgres
- DATABASE_HOST=my_postgres
- DATABASE_PORT=5432
GROQ_API_KEY=*
- Run this command in your terminal to generate a new secret key:
For the
GROQ_API_KEY
, you'll need to obtain it from the Groq website. Follow these steps:- Go to Groq's website.
- Click on 'GroqCloud'.
- In GroqCloud, you can create your API key.
-
-
Build the Docker Images:
- Using
docker-compose.yml
:docker-compose build
- Using
-
Run the Containers:
- Using Docker Compose:
docker-compose up -d
- Using Docker Compose: