Skip to content

Minute-Magic/news-app-react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Vite News App

This is a simple React application built with Vite that fetches news data from the NewsAPI. It allows users to browse through the latest news articles and read their summaries.

image

image

Features

  • Fetches news articles from the NewsAPI
  • Displays a list of articles with titles, descriptions, and sources
  • Allows users to click on individual articles to read their full content
  • Responsive design for optimal viewing on different devices

Technologies Used

  • React.js
  • Vite
  • NewsAPI

Setup

To run this project locally, follow these steps:

  1. Clone the repository:

    git clone https://github.com/your-username/react-news-app.git
    
  2. Install dependencies:

    npm install
    
  3. Create a .env file in the root directory of the project and add your NewsAPI key:

    VITE_NEWS_API_KEY=your-newsapi-key
    

    Replace your newsapi-key with your actual NewsAPI key.

  4. Start the development server:

    npm run dev
    
  5. Open your browser and navigate to http://localhost:3000 to view the app.

Usage

  • Upon opening the app, you will see a list of the latest news articles.
  • Click on an article to read its full content.
  • Use the navigation buttons to browse through different pages of articles.
  • The app is responsive, so you can view it on various devices.

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvements, please feel free to open an issue or submit a pull request.

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published