Welcome to the News Website repository! This project is a news website developed using Flask and Bootstrap.
The News Website is a web application that provides users with the latest news articles from various sources. It offers a user-friendly interface and a range of features to enhance the news browsing experience.
- News Articles: Browse through a collection of news articles from different sources. Each article is displayed with a title, description, source, and publication date. Clicking on an article opens a detailed view with the full content.
- User Authentication: Register an account or log in to access additional features such as saving favorite articles and personalized news recommendations.
To set up the News Website locally, follow these steps:
- Clone the repository:
git clone https://github.com/Upendra2003/FlaskApp.git
- Navigate to the project directory:
cd news-website
- Create a virtual environment:
python -m venv venv
- Activate the virtual environment:
- On Windows:
venv\Scripts\activate
- On macOS/Linux:
source venv/bin/activate
- On Windows:
- Install the required dependencies:
pip install -r requirements.txt
- Rename the
config_example.py
file toconfig.py
. - Open the
config.py
file and modify the configuration parameters as per your requirements. For example, you might want to set the API keys, database credentials, etc.
- Activate the virtual environment if it's not already activated:
source venv/bin/activate
- Run the Flask development server:
flask run
- Open your web browser and visit
http://localhost:5000
to access the News Website.
You can customize the News Website to match your desired design and content. Here are a few areas you may want to modify:
-
Styling: The website uses Bootstrap for styling. You can modify the CSS files in the
static/css
directory or customize the Bootstrap theme to suit your preferences. -
Content: Update the news sources, categories, or any other data in the Python files located in the
app
directory to display the desired content on the website.
Contributions are welcome! If you have any suggestions, bug reports, or feature requests, please open an issue or submit a pull request on the GitHub repository.
We would like to express our gratitude to the following resources and libraries that made this project possible:
- Flask: https://flask.palletsprojects.com
- Bootstrap: https://getbootstrap.com
If you have any questions or need further assistance, please feel
free to contact us:
- Email: upendrakarimi2003@gmail.com
- GitHub: github.com/Upendra2003
Thank you for visiting the News Website repository!