Jet_News is a website that uses Flask to host and Google News API to get all recent tech news and display all of them separated by two categories: tech and startups, and Bootstrap to create a responsive layout. It uses Docker to create a properly deployment folder and uses Heroku to host the website on the cloud.
Click here to check Jet_News.
To understand more about creating a responsive template, a deployment system and a functional website, I developed Jet_News. A simple website that gets news from an API and display them through Flask to a Responsive template made with Bootstrap. To deploy it, I used Docker and Heroku.
I found a simple API called News API and used it to get the most recent news about Tech and Startups that were written in English. To do this, all I needed was this piece of code, that is inside main.py.
from newsapi import NewsApiClient
newsapi = NewsApiClient(api_key="myKey")
def get_articles_keyWord():
articles = newsapi.get_everything(
q="keyWord",
language="en",
)
list_of_articles = articles["articles"]
return list_of_articles
In order to have a good template, I was inspired by famous news websites. I also used Bootstrap to keep everything responsive, making it possible to use my website on the cellphone or on the computer.
- Matheus Assis - GitHub
Powered by NewsAPI
This project is licensed under the MIT License - see the LICENSE.md file for details.
Thanks for visiting my GitHub! <3