Skip to content

Latest commit

 

History

History
60 lines (41 loc) · 1.7 KB

README.md

File metadata and controls

60 lines (41 loc) · 1.7 KB

News-App

Screenshot 2024-04-30 at 6 11 38 PM

Screenshot 2024-04-30 at 6 12 51 PM

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.

Features

  • 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.

Tech Stack

  • Backend: Node.js, Express.js
  • Templating Engine: EJS
  • API: News API

Installation

  1. Clone the repository:

    git clone https://github.com/shrutigupta02/News-App.git
    cd News-App
  2. Install dependencies:

    npm install
  3. 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
  4. Run the application:

    node App.js

Usage

  1. Open your browser and navigate to http://localhost:3000 to view the latest news articles.
  2. Browse through various categories and articles dynamically rendered using EJS.

License

This project is licensed under the MIT License.

Acknowledgments

  • 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