news-website

所属分类:后台框架
开发工具:CSS
文件大小:2483KB
下载次数:0
上传日期:2023-02-23 09:52:41
上 传 者sh-1993
说明:  这是一个使用Flask创建的简单新闻网站。该网站从NDTV API获取最新的新闻文章,并...
(This is a simple news website created using Flask. The website fetches the latest news articles from the NDTV API and displays them on the homepage. The project is hosted on Vercel, a cloud platform for serverless deployment)

文件列表:
Procfile (21, 2023-02-23)
app.py (83, 2023-02-23)
news_project (0, 2023-02-23)
news_project\__init__.py (777, 2023-02-23)
news_project\news_apps (0, 2023-02-23)
news_project\news_apps\__init__.py (0, 2023-02-23)
news_project\news_apps\core.py (1399, 2023-02-23)
news_project\news_apps\general_news.py (4600, 2023-02-23)
news_project\news_source (0, 2023-02-23)
news_project\news_source\__init__.py (0, 2023-02-23)
news_project\news_source\ndtv_api.py (672, 2023-02-23)
news_project\static (0, 2023-02-23)
news_project\static\assets (0, 2023-02-23)
news_project\static\assets\css (0, 2023-02-23)
news_project\static\assets\css\style-starter.css (254716, 2023-02-23)
news_project\static\assets\fonts (0, 2023-02-23)
news_project\static\assets\fonts\FontAwesome.otf (134808, 2023-02-23)
news_project\static\assets\fonts\fontawesome-webfont.eot (165742, 2023-02-23)
news_project\static\assets\fonts\fontawesome-webfont.svg (444379, 2023-02-23)
news_project\static\assets\fonts\fontawesome-webfont.ttf (165548, 2023-02-23)
news_project\static\assets\fonts\fontawesome-webfont.woff (98024, 2023-02-23)
news_project\static\assets\fonts\fontawesome-webfont.woff2 (77160, 2023-02-23)
news_project\static\assets\images (0, 2023-02-23)
news_project\static\assets\images\sports_home (0, 2023-02-23)
news_project\static\assets\images\sports_home\Formula1.jpg (30449, 2023-02-23)
news_project\static\assets\images\sports_home\badminton.jpg (79920, 2023-02-23)
news_project\static\assets\images\sports_home\boxing.jpg (28842, 2023-02-23)
news_project\static\assets\images\sports_home\chess.jpg (29686, 2023-02-23)
news_project\static\assets\images\sports_home\cricket.jpg (70531, 2023-02-23)
news_project\static\assets\images\sports_home\football.jpg (84978, 2023-02-23)
news_project\static\assets\images\sports_home\golf.jpg (55410, 2023-02-23)
news_project\static\assets\images\sports_home\hockey.jpg (53811, 2023-02-23)
news_project\static\assets\images\sports_home\kabaddi.jpg (72651, 2023-02-23)
news_project\static\assets\images\sports_home\nba.jpg (389404, 2023-02-23)
news_project\static\assets\images\sports_home\tennis.jpg (868491, 2023-02-23)
news_project\static\assets\images\sports_home\wrestling.jpg (42729, 2023-02-23)
news_project\static\assets\images\website_logo.png (1105, 2023-02-23)
... ...

# News Website This is a simple news website created using Flask. The website fetches the latest news articles from the NDTV API and displays them on the homepage. The project is hosted on Vercel, a cloud platform for serverless deployment. ## Features - Latest news articles displayed on the homepage - Clicking on a news article takes the user to the full article on the NDTV website ## Technologies Used - Python - Flask - HTML/CSS/JavaScript ## Hosted on Vercel This project is hosted on Vercel, a cloud platform for serverless deployment. You can access the live website at https://news19.vercel.app/. ## API Used This project fetches the latest news articles from the NDTV API, which can be found at https://ndtvapi.vercel.app/. The API provides news articles in JSON format. ## Getting Started To run this project on your local machine, follow the steps below: 1. Clone the repository using the following command: ```bash $ git clone https://github.com/NishanthMuruganantham/news-website.git ``` 2. Navigate to the cloned directory: ```bash $ cd news-website ``` 3. Install the project dependencies: ```bash $ pip install -r requirements.txt ``` 4. Set the Flask environment variables: ```bash $ export FLASK_APP=app.py $ export FLASK_ENV=development ``` 5. Run the Flask app ```bash $ python app.py ``` 6. Open a web browser and go to http://localhost:5000/ to access the website. ## Contributing If you would like to contribute to this project, please follow these guidelines: 1. Fork the repository. 2. Create a new branch for your feature/bug fix. 3. Make your changes and commit them with a descriptive commit message. 4. Push your changes to your forked repository. 5. Submit a pull request to the original repository. ## License This project is licensed under the MIT License - see the [LICENSE](https://github.com/NishanthMuruganantham/news-website/blob/master/LICENSE) file for details.

近期下载者

相关文件


收藏者