This is a simple News App built with Next.js and Tailwind CSS, fetching news content from the News API.
You can access the live deployment of the News App at https://news-app-nobleosinachi.vercel.app/.
- View the latest news articles from various sources.
- Search for news articles by keywords.
- Click on news articles to read the full content.
To run this project locally, follow these steps:
-
Clone the repository:
git clone https://github.com/NobleOsinachi/news-app.git
-
Navigate to the project directory:
cd news-app
-
Install dependencies:
npm install
-
Create a
.env.local
file in the project root and add your News API key:NEXT_PUBLIC_NEWS_API_KEY=your_api_key_here
You can obtain an API key by signing up at News API.
-
Start the development server:
npm run dev
-
Open your browser and visit http://localhost:3000/ to view the app.
- The app displays a list of the latest news articles by default.
- Use the search bar to search for news articles by keywords.
- Click on a news article to read the full content.
Contributions are welcome! If you'd like to contribute to this project, please follow these guidelines:
- Fork the repository.
- Create a new branch for your feature or bug fix:
git checkout -b feature-name
. - Make your changes and commit them:
git commit -m 'Add feature'
. - Push to your fork:
git push origin feature-name
. - Create a pull request to the
main
branch of the original repository.
This project is licensed under the MIT License - see the LICENSE file for details.