Headline-Hub is a dynamic news platform built using Node.js, Express, and EJS. It provides users with the latest news articles from various sources, presenting them in an organized and user-friendly interface.
- Real-Time News Updates: Fetches and displays the latest news articles from multiple sources in real-time.
- User-Friendly Interface: Utilizes EJS templates to render dynamic content, ensuring a smooth and interactive user experience.
- Responsive Design: Designed to be fully responsive, ensuring optimal viewing on desktops, tablets, and mobile devices.
- Search Functionality: Includes a powerful search feature to help users find specific news articles quickly.
- Performance Optimized: Built with performance in mind, ensuring fast load times and a seamless browsing experience.
-
Clone the project
https://github.com/1simransaini/Headline-Hub.git
-
Install Dependencies
Install the necessary Node.js dependencies using npm:
npm init
-
Set Up Environment Variables
Create a .env file in the root directory of your project and add any required environment variables. For example:
PORT=3000 NEWS_API_KEY=your_news_api_key
Replace your_news_api_key with your actual API key from the news source you are using.
-
Run the Application
Start the application using npm:
npm start
-
Access the Application Open your web browser and navigate to:
http://localhost:3000
You should see the Headline-Hub homepage with the latest news articles displayed.