This is a React application that fetches and displays news from an API.
- Fetches news articles from an external API
- Displays news articles in a clean and responsive layout
- Provides a search functionality to find specific news articles
- React
- CSS
- Node.js (>=14.x)
- npm or yarn
1.Clone the repository:
git clone https://github.com/alokranjan609/React-NewsGram.git
2.Go to the folder:
cd path
3.Install dependencies:
npm install
4.Create a .env file in the root of your project and add your API key:
REACT_APP_NEWS_API_KEY=your_api_key_here
1.Start the development server:
npm start
2.Open your browser and navigate to http://localhost:3000.
Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.