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.
- Latest news articles displayed on the homepage
- Clicking on a news article takes the user to the full article on the NDTV website
- Python
- Flask
- HTML/CSS/JavaScript
This project is hosted on Vercel, a cloud platform for serverless deployment. You can access the live website at https://news19.vercel.app/.
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.
To run this project on your local machine, follow the steps below:
- Clone the repository using the following command:
$ git clone https://github.com/NishanthMuruganantham/news-website.git
- Navigate to the cloned directory:
$ cd news-website
- Install the project dependencies:
$ pip install -r requirements.txt
- Set the Flask environment variables:
$ export FLASK_APP=app.py
$ export FLASK_ENV=development
- Run the Flask app
$ python app.py
- Open a web browser and go to http://localhost:5000/ to access the website.
If you would like to contribute to this project, please follow these guidelines:
- Fork the repository.
- Create a new branch for your feature/bug fix.
- Make your changes and commit them with a descriptive commit message.
- Push your changes to your forked repository.
- Submit a pull request to the original repository.
This project is licensed under the MIT License - see the LICENSE file for details.