This News App fetches and displays the latest news articles using the News API. Built with Express and Node.js, it uses EJS for dynamic templating to render news articles on the frontend.
- Fetch Latest News: Retrieves the latest news articles from the News API.
- Dynamic Templating: Utilizes EJS to dynamically display news content.
- Responsive Design: Ensures a user-friendly experience on various devices.
- Backend: Node.js, Express.js
- Templating Engine: EJS
- API: News API
-
Clone the repository:
git clone https://github.com/shrutigupta02/News-App.git cd News-App
-
Install dependencies:
npm install
-
Set up environment variables: Create a
.env
file in the root directory with the following variables:PORT=3000 NEWS_API_KEY=your_news_api_key
-
Run the application:
node App.js
- Open your browser and navigate to
http://localhost:3000
to view the latest news articles. - Browse through various categories and articles dynamically rendered using EJS.
This project is licensed under the MIT License.
- Thanks to News API for providing the news data.
Feel free to reach out if you have any questions or suggestions! I can be reached via my mail: shrutiguptaindore02@gmail.com