Skip to content

Utilises NewsAPI to fetch News using Express.js and displays articles in a dynamic fashion using EJS

Notifications You must be signed in to change notification settings

shrutigupta02/News-App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Utilises NewsAPI to fetch News using Express.js and displays articles in a dynamic fashion using EJS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published